summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebar_eunit.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index b026b4b..16ad365 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -314,6 +314,7 @@ get_beam_test_exports(ModuleStr) ->
make_test_wrappers(RawTests) ->
%% eunit_test:function_wrapper/2 was renamed to mf_wrapper/2 in R15B02
+ %% TODO: remove check/fallback once at least R15B02 is required
{module, eunit_test} = code:ensure_loaded(eunit_test),
WrapperFun = case erlang:function_exported(eunit_test, mf_wrapper, 2) of
true -> fun eunit_test:mf_wrapper/2;