[erlang-questions] slave:start/3 time out when EUnit started with ERL_FLAGS
George Catalin Serbanut
Wed Sep 7 10:34:02 CEST 2011
Try also "-s init stop" at the end of your commends. That will ensure
control release after the process is consumed.
2011/9/7 Ulf Wiger <ulf.wiger@REDACTED>
> 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 W
> Ulf Wiger, CTO, Erlang Solutions, Ltd.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions