Hello Romain,
* Romain Lenglet wrote on Wed, Aug 12, 2009 at 02:55:08AM CEST:
> Ralf Wildenhues wrote:
> >> ./suite.at:3: "$ERLC" $ERLCFLAGS -b beam my_testsuite.erl
> >> ./suite.at:3: "$ERL" -pa "${abs_top_builddir}/s" -s my_testsuite test
> >> $at_eunit_options -noshell
> >> --- /dev/null 2008-08-11 20:08:11.000000000 +0200
> >> +++
> >> /tmp/autoconf/build/tests/testsuite.dir/186/t/suite.dir/at-groups/1/stderr
> >> 2009-08-11 20:12:12.000000000 +0200
> >> @@ -0,0 +1,3 @@
> >> +
> >> +Crash dump was written to: erl_crash.dump
> >> +init terminating in do_boot ()
> >> stdout:
> >> {"init terminating in
> >> do_boot",{undef,[{init,stop,"M"},{init,start_it,1},{init,start_em,1}]}}
> >> ./suite.at:3: exit code was 1, expected 0
> >> 1. suite.at:2: 1. my only test (suite.at:2): FAILED (suite.at:3)> Can you please send me the conftest.erl program that is generated by > AT_CHECK_EUNIT? I assume you mean the ./t/suite.dir/1/my_testsuite.erl file? Attached. > Which version of Erlang are you using (which package have you downloaded > or installed)? Please run "erl" and copy the line "Erlang (BEAM) > emulator ...". $ erl Erlang (BEAM) emulator version 5.5.5 [source] [64-bit] [async-threads:0] [kernel-poll:false] > > If you like I can provide the erl_crash.dump file (170K uncompressed). > > Yes, please send it to me. It may be helpful. Attached. Hope that helps. Thanks, Ralf
-module(my_testsuite).
-export([test/0, test/1]).
test() -> test([]).
test(Options) ->
TestSpec = {module, testme},
ReturnValue = case code:load_file(eunit) of
{module, _} -> case eunit:test(TestSpec, Options) of
ok -> 0; %% test passes
_ -> 1 %% test fails
end;
_ -> 77 %% EUnit not found, test skipped
end,
init:stop(ReturnValue).
erl_crash.dump.bz2
Description: Binary data
