Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meck eunit tests fail on R15B #51

Closed
norton opened this issue Dec 18, 2011 · 3 comments
Closed

meck eunit tests fail on R15B #51

norton opened this issue Dec 18, 2011 · 3 comments
Assignees
Labels
Milestone

Comments

@norton
Copy link
Contributor

norton commented Dec 18, 2011

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.

@norton
Copy link
Contributor Author

norton commented Dec 19, 2011

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()]},...]>

@bjnortier
Copy link
Contributor

I think I've added support for this. Unit tests are passing in R14 and R15
#52

@ghost ghost assigned eproxus Jan 10, 2012
@eproxus
Copy link
Owner

eproxus commented Jan 18, 2012

Re-open if d8b4267 doesn't solve the issue.

@eproxus eproxus closed this as completed Jan 18, 2012
@eproxus eproxus added the bug label Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants