aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-03-21 10:38:13 +0100
committerLukas Larsson <[email protected]>2019-03-25 16:34:11 +0100
commit80beed3bebbdacf8acdb6cc93992c4a473dac492 (patch)
treef45b140271026c44d22bc8f75abd61ade64148a0 /erts
parentc18f95e787125f8be5a5b1731b896f7008a5d5db (diff)
downloadotp-80beed3bebbdacf8acdb6cc93992c4a473dac492.tar.gz
otp-80beed3bebbdacf8acdb6cc93992c4a473dac492.tar.bz2
otp-80beed3bebbdacf8acdb6cc93992c4a473dac492.zip
Fix tests to work better in debug emulator
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/efile_SUITE.erl7
-rw-r--r--erts/emulator/test/process_SUITE.erl2
2 files changed, 7 insertions, 2 deletions
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 ->