aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/src/eunit_test.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2016-02-03 15:33:11 +0100
committerHans Bolinder <[email protected]>2016-02-17 09:17:33 +0100
commit7113a52be93505b2db99cfa7a37160e80722a203 (patch)
treeebf6722bc00691811a003e2f77d7bda53cab78ad /lib/eunit/src/eunit_test.erl
parent98f74d1f6f1109cbd0cbc495ed3d8630271ce8c6 (diff)
downloadotp-7113a52be93505b2db99cfa7a37160e80722a203.tar.gz
otp-7113a52be93505b2db99cfa7a37160e80722a203.tar.bz2
otp-7113a52be93505b2db99cfa7a37160e80722a203.zip
eunit: Add suppression of Dialyzer warnings
Diffstat (limited to 'lib/eunit/src/eunit_test.erl')
-rw-r--r--lib/eunit/src/eunit_test.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/eunit/src/eunit_test.erl b/lib/eunit/src/eunit_test.erl
index 9cf40a738d..62d30b1930 100644
--- a/lib/eunit/src/eunit_test.erl
+++ b/lib/eunit/src/eunit_test.erl
@@ -40,6 +40,7 @@ get_stacktrace() ->
get_stacktrace(Ts) ->
eunit_lib:uniq(prune_trace(erlang:get_stacktrace(), Ts)).
+-dialyzer({no_match, prune_trace/2}).
prune_trace([{eunit_data, _, _} | Rest], Tail) ->
prune_trace(Rest, Tail);
prune_trace([{eunit_data, _, _, _} | Rest], Tail) ->
@@ -75,6 +76,7 @@ run_testfun(F) ->
-ifdef(TEST).
+-dialyzer({[no_match, no_fail_call, no_return], macro_test_/0}).
macro_test_() ->
{"macro definitions",
[{?LINE, fun () ->
@@ -301,6 +303,7 @@ wrapper_test_() ->
]}.
%% this must be exported (done automatically by the autoexport transform)
+-dialyzer({no_missing_calls, wrapper_test_exported_/0}).
wrapper_test_exported_() ->
{ok, ?MODULE:nonexisting_function()}.
-endif.