aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-05-20 08:44:09 +0200
committerLukas Larsson <[email protected]>2016-05-20 08:44:09 +0200
commit59fa8124370d63dc810ff27dde3f20d2aa6fc523 (patch)
treeb28b275bb6ba66255a7a197f4d91131a21edb3e2 /erts
parent0bc0e3e51a4229245c4111667eec9133a1a8984c (diff)
downloadotp-59fa8124370d63dc810ff27dde3f20d2aa6fc523.tar.gz
otp-59fa8124370d63dc810ff27dde3f20d2aa6fc523.tar.bz2
otp-59fa8124370d63dc810ff27dde3f20d2aa6fc523.zip
erts: Require more memory for debug tests
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/test/process_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/test/process_SUITE.erl b/erts/emulator/test/process_SUITE.erl
index eaa4026a8a..94adfe5cad 100644
--- a/erts/emulator/test/process_SUITE.erl
+++ b/erts/emulator/test/process_SUITE.erl
@@ -2585,7 +2585,10 @@ enable_internal_state() ->
_ -> erts_debug:set_internal_state(available_internal_state, true)
end.
-sys_mem_cond_run(ReqSizeMB, TestFun) when is_integer(ReqSizeMB) ->
+sys_mem_cond_run(OrigReqSizeMB, TestFun) when is_integer(OrigReqSizeMB) ->
+ %% Debug normally needs more memory, so double the requirement
+ Debug = erlang:system_info(debug_compiled),
+ ReqSizeMB = if Debug -> OrigReqSizeMB * 2; true -> OrigReqSizeMB end,
case total_memory() of
TotMem when is_integer(TotMem), TotMem >= ReqSizeMB ->
TestFun();