From 34546941ae3ef87816a087aa966bfec2a3c4e35b Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sun, 29 Jan 2017 02:07:48 -0500 Subject: [PATCH] Make test work on all OTPs --- test/rebar_compile_SUITE.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl index 7df0d636..9f01496c 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.