[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS
Wed Sep 7 10:26:29 CEST 2011
On 7 Sep 2011, at 10:14, Ignas Vyšniauskas wrote:
> bug: compile
> EUNIT="verbose" ERL_FLAGS="-sname foobar" erl -s eunit test foo
From the init(3) man page on the '-s' flag:
"The functions are executed sequentially in an initialization process, which then terminates normally and passes control to the user. This means that a -s call which does not return will block further processing; to avoid this, use some variant of spawn in such cases."
eunit:test/1 runs to completion, blocking until the tests are done. Therefore, it can't be used directly with the -s flag.
Ulf Wiger, CTO, Erlang Solutions, Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions