aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-12-17 18:24:57 +0100
committerSiri Hansen <[email protected]>2012-12-17 18:24:57 +0100
commit0b8a2e665aba75cb0b0be5c08d4cbbee508589b2 (patch)
treea7be8e89c5cf01191e304765d4ec0373df8edaf3 /lib/observer/test
parent489ee09fe1673043f6f6a93a1371b4e7b11ef4ff (diff)
downloadotp-0b8a2e665aba75cb0b0be5c08d4cbbee508589b2.tar.gz
otp-0b8a2e665aba75cb0b0be5c08d4cbbee508589b2.tar.bz2
otp-0b8a2e665aba75cb0b0be5c08d4cbbee508589b2.zip
[observer] Set ERL_CRASH_DUMP_SECONDS/=-1 on old releases
Else, crashdumps can not be generated.
Diffstat (limited to 'lib/observer/test')
-rw-r--r--lib/observer/test/crashdump_viewer_SUITE.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/observer/test/crashdump_viewer_SUITE.erl b/lib/observer/test/crashdump_viewer_SUITE.erl
index 7487a004af..1b8796d464 100644
--- a/lib/observer/test/crashdump_viewer_SUITE.erl
+++ b/lib/observer/test/crashdump_viewer_SUITE.erl
@@ -732,6 +732,12 @@ dump_with_strange_module_name(DataDir,Rel,DumpName) ->
CD.
dump(Node,DataDir,Rel,DumpName) ->
+ case Rel of
+ _ when Rel<r15b, Rel=/=current ->
+ rpc:call(Node,os,putenv,["ERL_CRASH_DUMP_SECONDS","600"]);
+ _ ->
+ ok
+ end,
rpc:call(Node,erlang,halt,[DumpName]),
Crashdump0 = filename:join(filename:dirname(code:which(?t)),
"erl_crash_dump.n1"),