diff options
author | Siri Hansen <[email protected]> | 2016-12-05 13:30:44 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-12-05 13:30:44 +0100 |
commit | ca7b0799d9ddf9d83dcaae4e608406f5c236d0a3 (patch) | |
tree | 426fc46216110900587ccbbb56cfdc37a9f4ab10 /lib/observer/test/crashdump_viewer_SUITE.erl | |
parent | df4b81916c88b9fe35ca58b2b50f40bdd74493e5 (diff) | |
parent | 3131852908ae711502ca5a9a3a8a63109bc83be2 (diff) | |
download | otp-ca7b0799d9ddf9d83dcaae4e608406f5c236d0a3.tar.gz otp-ca7b0799d9ddf9d83dcaae4e608406f5c236d0a3.tar.bz2 otp-ca7b0799d9ddf9d83dcaae4e608406f5c236d0a3.zip |
Merge branch 'siri/cdv/abort-tag/OTP-14053' into maint
* siri/cdv/abort-tag/OTP-14053:
[crashdump_viewer] Display abort reason when truncated
Diffstat (limited to 'lib/observer/test/crashdump_viewer_SUITE.erl')
-rw-r--r-- | lib/observer/test/crashdump_viewer_SUITE.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/observer/test/crashdump_viewer_SUITE.erl b/lib/observer/test/crashdump_viewer_SUITE.erl index 73ed890802..8df69c6624 100644 --- a/lib/observer/test/crashdump_viewer_SUITE.erl +++ b/lib/observer/test/crashdump_viewer_SUITE.erl @@ -420,6 +420,10 @@ special(File,Procs) -> %% ".trunc" -> %% %% ???? %% ok; + ".trunc.bytes" -> + {ok,_,[TW]} = crashdump_viewer:general_info(), + {match,_} = re:run(TW,"CRASH DUMP SIZE LIMIT REACHED"), + ok; _ -> ok end, @@ -481,7 +485,11 @@ do_create_dumps(DataDir,Rel) -> current -> CD3 = dump_with_args(DataDir,Rel,"instr","+Mim true"), CD4 = dump_with_strange_module_name(DataDir,Rel,"strangemodname"), - {[CD1,CD2,CD3,CD4], DosDump}; + Bytes = rand:uniform(300000) + 100, + CD5 = dump_with_args(DataDir,Rel,"trunc.bytes", + "-env ERL_CRASH_DUMP_BYTES " ++ + integer_to_list(Bytes)), + {[CD1,CD2,CD3,CD4,CD5], DosDump}; _ -> {[CD1,CD2], DosDump} end. |