瀏覽代碼

Make test work on all OTPs

pull/1460/head
Fred Hebert 8 年之前
父節點
當前提交
34546941ae
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      test/rebar_compile_SUITE.erl

+ 4
- 1
test/rebar_compile_SUITE.erl 查看文件

@ -1671,7 +1671,10 @@ regex_filter_skip(Config) ->
{ok, [{file, Expected}]}), {ok, [{file, Expected}]}),
throw(should_not_be_found) throw(should_not_be_found)
catch 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 ok
end. end.

Loading…
取消
儲存