From d3a2fa1e9a03874a13a71f5097a43ef96b76c867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mickae=CC=88l=20Re=CC=81mond?= Date: Sat, 7 Mar 2015 12:31:11 +0100 Subject: [PATCH] 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. --- test/elixir_SUITE.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(),