<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Roberto,<br>
<br>
You won't get test case line info if it's the last line of
execution that causes the timetrap timeout. Because of tail call
elimination the {Suite,Testcase,Line} info is not saved on stack
unless there's a trailing expression. I.e.<br>
<br>
tc(_) -> func_that_may_not_return().<br>
<br>
will not generate test case line info if it fails, but<br>
<br>
tc(_) -> func_that_may_not_return(), ok.<br>
<br>
will.<br>
<br>
That said, Common Test removes internal common_test and
test_server elements from the stack before printing the stack
trace to the log. This operation is too agressive and removes all
elements if no {Suite,Testcase,Line} tuple is found "to sync
with". Knowing it must be the last call in the test case causing
the timeout and knowing which internal function executed the test
case, I should be able to print relevant stack info to the log
even when a test case tuple is not present due to tail call
elimination. Fix is coming asap...<br>
<br>
Best,<br>
Peter<br>
<br>
Ericsson AB, Erlang/OTP<br>
<br>
<br>
On 2015-04-29 13:15, Roberto Ostinelli wrote:<br>
</div>
<blockquote
cite="mid:CAM5fRyq+Qa4H6extNf-kQih7Cofb3wP=STKBGNwzzf-NUZaBNg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">Loïc,
<div>Yes that did help me. It just stated {error,eoc} (i.e. no
line of where this happened) but at least I could track it
down to the issue.</div>
<div><br>
</div>
<div>Thank you.</div>
<div>r.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Apr 29, 2015 at 12:58 PM, Loïc
Hoguin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Did you
look inside the HTML logs that Common Test generates? They
usually contain the complete error and stacktrace, while the
console only gets partials.
<div>
<div class="h5"><br>
<br>
On 04/29/2015 01:54 PM, Roberto Ostinelli wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
Dear list,<br>
When running CT I have a test where I get:<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - -<br>
Error detected: {'EXIT',{badmatch,{...}}}<br>
- - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
No additional information. My application logs do not
show any errors.<br>
<br>
Weirdly enough, if I put a timer:sleep(10) somewhere
in my code, this<br>
error does not show up anymore.<br>
<br>
Thing is: how can I get CT to tell me the module /
line where this error<br>
happens?<br>
<br>
Thank you,<br>
r.<br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org"
target="_blank">erlang-questions@erlang.org</a><br>
<a moz-do-not-send="true"
href="http://erlang.org/mailman/listinfo/erlang-questions"
target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<span class="HOEnZb"><font color="#888888">
</font></span></blockquote>
<span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a moz-do-not-send="true" href="http://ninenines.eu"
target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>