You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried R15B today for the first time and found that meck eunit tests are failing with R15B.
I'm guessing this is a new issue due to line numbers added in R15B.
make test
==> meck (eunit)
Compiled test/meck_performance_test.erl
Compiled test/meck_test_module.erl
Compiled src/meck_mod.erl
Compiled src/meck.erl
Compiled test/meck_tests.erl
meck_tests: stacktrace_...failed
::{assertion_failed,[{module,meck_tests},
{line,171},
{expression,"lists : any ( fun ( { M , test , [ ] } ) when M == Mod -> true ; ( _ ) -> false end , erlang : get_stacktrace ( ) )"},
{expected,true},
{value,false}]}
meck_tests: stacktrace_function_clause_...failed
::{assertion_failed,[{module,meck_tests},
{line,184},
{expression,"lists : any ( fun ( { M , test , [ error ] } ) when M == Mod -> true ; ( _ ) -> false end , Stacktrace )"},
{expected,true},
{value,false}]}
=ERROR REPORT==== 19-Dec-2011::00:36:59 ===
** Generic server mymod_meck terminating
** Last message in was {'EXIT',<0.97.0>,expected_test_exit}
** When Server state == {state,mymod,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
true,[],false,false}
** Reason for termination ==
** expected_test_exit
=ERROR REPORT==== 19-Dec-2011::00:37:00 ===
Can't load module that resides in sticky dir
Failed: 3. Skipped: 0. Passed: 82.
Cover analysis: /Users/norton/tmp/meck/.eunit/index.html
Node State Type In Out Address
=ERROR REPORT==== 19-Dec-2011::00:37:01 ===
** Generic server inet_gethost_native_sup terminating
** Last message in was {'EXIT',<0.644.0>,killed}
** When Server state == {state,inet_gethost_native,undefined,<0.644.0>,
{local,inet_gethost_native_sup}}
** Reason for termination ==
** killed
ERROR: One or more eunit tests failed.
The text was updated successfully, but these errors were encountered:
Running dialyzer with R15B prints out the following warning message:
meck.erl:644: The pattern <Mod, Func, Args, [Meck = {'meck', 'exec', _Arity} | Stack]> can never match the type <atom(),_,_,[{atom(),atom(),[any()] | byte(),[any()]},...]>
I tried R15B today for the first time and found that meck eunit tests are failing with R15B.
I'm guessing this is a new issue due to line numbers added in R15B.
make test
==> meck (eunit)
Compiled test/meck_performance_test.erl
Compiled test/meck_test_module.erl
Compiled src/meck_mod.erl
Compiled src/meck.erl
Compiled test/meck_tests.erl
meck_tests: stacktrace_...failed
::{assertion_failed,[{module,meck_tests},
{line,171},
{expression,"lists : any ( fun ( { M , test , [ ] } ) when M == Mod -> true ; ( _ ) -> false end , erlang : get_stacktrace ( ) )"},
{expected,true},
{value,false}]}
meck_tests: stacktrace_function_clause_...failed
::{assertion_failed,[{module,meck_tests},
{line,184},
{expression,"lists : any ( fun ( { M , test , [ error ] } ) when M == Mod -> true ; ( _ ) -> false end , Stacktrace )"},
{expected,true},
{value,false}]}
meck_tests: history_error_args_...failed
::{assertion_failed,[{module,meck_tests},
{line,257},
{expression,"lists : any ( fun ( { _M , _F , [ fake_args ] } ) -> true ; ( _ ) -> false end , Stacktrace )"},
{expected,true},
{value,false}]}
=ERROR REPORT==== 19-Dec-2011::00:36:59 ===
** Generic server mymod_meck terminating
** Last message in was {'EXIT',<0.97.0>,expected_test_exit}
** When Server state == {state,mymod,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
true,[],false,false}
** Reason for termination ==
** expected_test_exit
=ERROR REPORT==== 19-Dec-2011::00:37:00 ===
Can't load module that resides in sticky dir
Failed: 3. Skipped: 0. Passed: 82.
Cover analysis: /Users/norton/tmp/meck/.eunit/index.html
Node State Type In Out Address
=ERROR REPORT==== 19-Dec-2011::00:37:01 ===
** Generic server inet_gethost_native_sup terminating
** Last message in was {'EXIT',<0.644.0>,killed}
** When Server state == {state,inet_gethost_native,undefined,<0.644.0>,
{local,inet_gethost_native_sup}}
** Reason for termination ==
** killed
ERROR: One or more eunit tests failed.
The text was updated successfully, but these errors were encountered: