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

George Catalin Serbanut cgsmcmlxxv@REDACTED
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.

Cheers,
CGS



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.
>
> BR,
> Ulf W
>
> Ulf Wiger, CTO, Erlang Solutions, Ltd.
> http://erlang-solutions.com
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110907/8fd777b6/attachment.htm>


More information about the erlang-questions mailing list