diff options
author | Ingela Anderton Andin <[email protected]> | 2016-12-05 17:59:45 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-12-05 17:59:45 +0100 |
commit | 72e702e079d82a7d6bcf3862e9d5e45e5fbb2545 (patch) | |
tree | e8c60109c665f685b06cf6ed38f56d7771a1d7d5 /lib/observer/test | |
parent | 51e20c81ff2bf4ab5d212ebe14afb42ebfea8c90 (diff) | |
parent | e82b03e0d9384d210a271e43634e7b4c3d3d0fe9 (diff) | |
download | otp-72e702e079d82a7d6bcf3862e9d5e45e5fbb2545.tar.gz otp-72e702e079d82a7d6bcf3862e9d5e45e5fbb2545.tar.bz2 otp-72e702e079d82a7d6bcf3862e9d5e45e5fbb2545.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/observer/test')
-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 1947341ebe..1fd94ffb3c 100644 --- a/lib/observer/test/crashdump_viewer_SUITE.erl +++ b/lib/observer/test/crashdump_viewer_SUITE.erl @@ -423,6 +423,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, @@ -484,7 +488,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. |