<div>Here's how I would view the situation:</div><div> </div><div>Erlang allows processes to crash -- "let it crash!"</div><div> </div><div>The question is: What behavior are you getting from the function under test? If it doesn't behave the way it's specified to, that should generate a test failure.</div>
<div> </div><div>Once you've detected that there is a test failure, you should be able to re-run the test manually (say, from command line) to debug it.</div><div> </div><div> </div><div>Is your request really something like: "When a CommonTest fails, how can I do post-mortem debugging on the failing test case"? </div>
<div> </div><div> </div><div>Sincerely,</div><div> </div><div>jw</div><div><br clear="all"><br>--<br>Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. <br>
<br>
<br><br></div><div class="gmail_quote">On Wed, Aug 10, 2011 at 3:39 AM, Joel Reymont <span dir="ltr"><<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>></span> wrote:<br><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
<div class="im"><br>
On Aug 10, 2011, at 9:09 AM, Lukas Larsson wrote:<br>
<br>
> Common Test detects any crashes which happen in the same process as the testcase is run in. If a crash happens in another process, it will not be detected unless you in your testcase check whether said process is alive or is linked to it. Could this be what is going wrong?<br>

<br>
</div>Yes, that's what's going on. I'm cannot link to all the processes in the "system under testing", I think that's unrealistic.<br>
<br>
I do expect to be told when something goes wrong, though, get a printout in the log, etc.<br>
<br>
This is in line with what EUnit does, for example.<br>
<div class="im"><br>
> If you're still having difficulties, could you post a minimal example of what you are trying to do? It's difficult to guess what could be the problem without an example to look at.<br>
<br>
</div>It's another process that's crashes.<br>
<div class="im"><br>
> Also if you want to have the SASL and error_logger output in your common test logs instead of redirecting them to a local file you might want to use the cth_log_redirect hook found here <a href="https://github.com/garazdawi/cth_tools" target="_blank">https://github.com/garazdawi/cth_tools</a>.<br>

<br>
<br>
</div>I'm perfectly fine with redirecting error_logger output to a local file but it seems that it shows up just fine in the CT logs.<br>
<br>
What's not showing up is error messages from other processes crashing, a completely unintuitive behavior, I think.<br>
<div><div></div><div class="h5"><br>
        Thanks, Joel<br>
<br>
--------------------------------------------------------------------------<br>
- for hire: mac osx device driver ninja, kernel extensions and usb drivers<br>
---------------------+------------+---------------------------------------<br>
<a href="http://wagerlabs.com" target="_blank">http://wagerlabs.com</a> | @wagerlabs | <a href="http://www.linkedin.com/in/joelreymont" target="_blank">http://www.linkedin.com/in/joelreymont</a><br>
---------------------+------------+---------------------------------------<br>
<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>