<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
This is fixed now btw, and will be released soon.<br>
<br>
Best,<br>
Peter<br>
<br>
On 2015-04-30 15:47, Roberto Ostinelli wrote:<br>
</div>
<blockquote
cite="mid:CAM5fRyrdV-bE4mzRW19it-vUmXtOWEuSad5dg-SuJd9+t2kbbQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">Thank you Peter! :)</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Apr 29, 2015 at 3:27 PM, Peter
Andersson <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:peppe@erlang.org" target="_blank">peppe@erlang.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><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
<div>
<div class="h5"><br>
<br>
<br>
On 2015-04-29 13:15, Roberto Ostinelli wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<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><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> 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><font color="#888888"> </font></span></blockquote>
<span><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></fieldset>
<br>
<pre>_______________________________________________
erlang-questions mailing list
<a moz-do-not-send="true" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a moz-do-not-send="true" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org">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>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>