From 80beed3bebbdacf8acdb6cc93992c4a473dac492 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Thu, 21 Mar 2019 10:38:13 +0100 Subject: Fix tests to work better in debug emulator --- erts/emulator/test/efile_SUITE.erl | 7 ++++++- erts/emulator/test/process_SUITE.erl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'erts/emulator') diff --git a/erts/emulator/test/efile_SUITE.erl b/erts/emulator/test/efile_SUITE.erl index 7dcf302742..55c5343739 100644 --- a/erts/emulator/test/efile_SUITE.erl +++ b/erts/emulator/test/efile_SUITE.erl @@ -45,7 +45,12 @@ iter_max_files(Config) when is_list(Config) -> iter_max_files_1(Config) -> DataDir = proplists:get_value(data_dir,Config), TestFile = filename:join(DataDir, "existing_file"), - N = 10, + case erlang:system_info(debug_compiled) of + true -> + N = 5; + false -> + N = 10 + end, %% Run on a different node in order to make the test more stable. Dir = filename:dirname(code:which(?MODULE)), {ok,Node} = test_server:start_node(test_iter_max_files,slave, diff --git a/erts/emulator/test/process_SUITE.erl b/erts/emulator/test/process_SUITE.erl index e009f60860..c698220013 100644 --- a/erts/emulator/test/process_SUITE.erl +++ b/erts/emulator/test/process_SUITE.erl @@ -134,7 +134,7 @@ end_per_group(_GroupName, Config) -> Config. init_per_testcase(Func, Config) - when Func =:= processes_default_tab_test; + when Func =:= processes_default_tab; Func =:= processes_this_tab -> case erlang:system_info(debug_compiled) of true -> -- cgit v1.2.3