summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-01-29 02:07:48 -0500
committerFred Hebert <mononcqc@ferd.ca>2017-01-29 02:48:42 -0500
commit34546941ae3ef87816a087aa966bfec2a3c4e35b (patch)
tree465addb0307c7aa14c01060e4eb79a34edecf0c1 /test
parent44132db73ea084249ed28c9b804564bfed8d69fd (diff)
Make test work on all OTPs
Diffstat (limited to 'test')
-rw-r--r--test/rebar_compile_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl
index 7df0d63..9f01496 100644
--- a/test/rebar_compile_SUITE.erl
+++ b/test/rebar_compile_SUITE.erl
@@ -1671,7 +1671,10 @@ regex_filter_skip(Config) ->
{ok, [{file, Expected}]}),
throw(should_not_be_found)
catch
- error:{assert,_} -> % the file was not found, as desired!
+ %% the file was not found, as desired!
+ error:{assertion_failed,_} -> %% OTP =< 17
+ ok;
+ error:{assert,_} -> %% OTP >= 18
ok
end.