diff options
author | Mickaël Rémond <mremond@process-one.net> | 2015-03-07 14:31:11 +0300 |
---|---|---|
committer | Mickaël Rémond <mremond@process-one.net> | 2015-03-07 14:31:11 +0300 |
commit | d3a2fa1e9a03874a13a71f5097a43ef96b76c867 (patch) | |
tree | 7cf3e635436bbd9bc54b087e7b0fc6c7565b24f0 /test | |
parent | da468db64868a61f2a1b33d6611ac9c85ed76664 (diff) |
Test file can be compiled under R16
Fixes test failing under R16 due to elixir_suite build syntax error.
The test will never be run under r16 as Elixir requires r17 and map
anyway.
Diffstat (limited to 'test')
-rw-r--r-- | test/elixir_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/elixir_SUITE.erl b/test/elixir_SUITE.erl index 64480aef5..b0a76bfa4 100644 --- a/test/elixir_SUITE.erl +++ b/test/elixir_SUITE.erl @@ -53,7 +53,9 @@ undefined_function(Module, Func, Args) -> run_elixir_test(Func) -> 'Elixir.ExUnit':start([]), 'Elixir.Code':load_file(list_to_binary(filename:join(test_dir(), atom_to_list(Func)))), - #{failures := 0} = 'Elixir.ExUnit':run(). + %% I did not use map syntax, so that this file can still be build under R16 + ResultMap = 'Elixir.ExUnit':run(), + {ok, 0} = maps:find(failures, ResultMap). test_dir() -> {ok, CWD} = file:get_cwd(), |