<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 August 2013 12:09, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">When I execute a test run with this code in place however, I still get the crash, though the io:format/2 notice that I'm starting the ct log appears first:<br>
<div><br>Common Test starting (cwd is /home/t4/work/vmware/rabbitmq-public-umbrella/rabbitmq-test/multi-node)<br>
<br>starting ct log!<br><br><br>ct_util_server got EXIT from <0.61.0>: {noproc,<br> {gen_server,call,<br> [test_server_io,<br> {print,xxxFrom,unexpected_io,<br>
[[[["<div class=\"default\"><b>*** User 2013-08-14 12:02:36.830 ***</b>"],<div class="im"><br> "\n",<br>
[91,102,114,97,109,101,119,111,<br> 114,107,93,32,119,97,116,99,<br> 104,100,111,103,58,32,110,111,<br>
32,112,114,111,99,115,32,116,<br> 111,32,107,105,108,108,"\n"]],<br> "\n","</div>"]]},<br>
infinity]}}<br><br></div></div><div><br></div><div>So it appears that the assertion that logging will work between the hook's init and terminate callbacks isn't quite working.<br>
</div><div><br></div></div></blockquote><div><br></div><div>Oh and I've tried pausing between the systest_ct_log:start/0 call and the (latter) systest:reset/0 call that triggers the logging, but that didn't make any difference either - e.g., like so:<br>
<br>init(systest, Opts) -><br> case application:start(systest, permanent) of<br> {error, {already_started, systest}} -> io:format("starting ct log!~n"),<br> systest_ct_log:start(),<br>
receive<br> foobar -> ok<br> after 2000 -> ok<br> end,<br>
systest:reset();<br> {error, _Reason}=Err -> Err;<br> ok -> ok<br> end,<br></div></div></div></div>