diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2015-03-07 12:41:59 +0100 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2015-03-07 12:41:59 +0100 |
commit | e3336ad12423b560547f9eab40614f57b337dbf6 (patch) | |
tree | 7cf3e635436bbd9bc54b087e7b0fc6c7565b24f0 | |
parent | Merge pull request #460 from mremond/run-elixir-test (diff) | |
parent | Test file can be compiled under R16 (diff) |
Merge pull request #461 from mremond/fix-r16-tests
Test file can be compiled under R16
-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(), |