diff options
author | Sverker Eriksson <sverker@erlang.org> | 2018-07-03 21:45:29 +0200 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2018-07-16 17:44:31 +0200 |
commit | 3e2508e0f6dbd973d80c96418a989d1fa525767a (patch) | |
tree | faf6c8ff5371a128243d1fcc58fa1e34ded71606 /lib/erl_interface/test/ei_decode_encode_SUITE.erl | |
parent | edabb78bccd26fe817844d92cd04d8ac7fb8e817 (diff) | |
download | erlang-3e2508e0f6dbd973d80c96418a989d1fa525767a.tar.gz |
erl_interface: Add valgrind ability for test port programs
Run under valgrind if environment variable VALGRIND_LOG_DIR is set.
Diffstat (limited to 'lib/erl_interface/test/ei_decode_encode_SUITE.erl')
-rw-r--r-- | lib/erl_interface/test/ei_decode_encode_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/erl_interface/test/ei_decode_encode_SUITE.erl b/lib/erl_interface/test/ei_decode_encode_SUITE.erl index 160720b413..6476e92be9 100644 --- a/lib/erl_interface/test/ei_decode_encode_SUITE.erl +++ b/lib/erl_interface/test/ei_decode_encode_SUITE.erl @@ -25,6 +25,7 @@ -include("ei_decode_encode_SUITE_data/ei_decode_encode_test_cases.hrl"). -export([all/0, suite/0, + init_per_testcase/2, test_ei_decode_encode/1]). suite() -> @@ -33,6 +34,9 @@ suite() -> all() -> [test_ei_decode_encode]. +init_per_testcase(Case, Config) -> + runner:init_per_testcase(?MODULE, Case, Config). + %% --------------------------------------------------------------------------- % NOTE: these types have no meaning on the C side so we pass them @@ -42,7 +46,7 @@ all() -> %% ######################################################################## %% test_ei_decode_encode(Config) when is_list(Config) -> - P = runner:start(?test_ei_decode_encode), + P = runner:start(Config, ?test_ei_decode_encode), Fun = fun (X) -> {X,true} end, Pid = self(), |