[erlang-questions] EUnit/escript bug - fails to terminate long-running (infinite) test
Thu Apr 26 15:01:12 CEST 2007
I'm trying to use escript to simplify my makefiles. When trying to run
eunit from an escript I found that it behaves differently to when called
The escript call:
main(["eunit" | BeamFiles]) ->
Paths = [filename:dirname(Beam) || Beam <- BeamFiles],
Modules = [list_to_atom(filename:basename(Beam, ".beam")) || Beam
case eunit:test(Modules) of
When calling eunit:test(mytest) from within an Erlang shell I get
Failed: 0. Aborted: 1. Skipped: 0. Succeeded: 0.
When running my escript I get as far as the "timed out" message and then
it hangs - not using CPU, so the test isn't still running, but the
script never terminates.
Any idea why eunit should behave differently when called from escript
compared to the Erlang shell?
More information about the erlang-questions