[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS

Ulf Wiger ulf.wiger@REDACTED
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.

BR,
Ulf W

Ulf Wiger, CTO, Erlang Solutions, Ltd.
http://erlang-solutions.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110907/ac26b6be/attachment.htm>


More information about the erlang-questions mailing list