diff options
author | Siri Hansen <[email protected]> | 2017-09-13 15:26:55 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-18 11:07:08 +0200 |
commit | 9ee5ad4f99f2540860f5acb357aac6b08d7e494e (patch) | |
tree | edcde8e08a77dd474e8275e96c71a53ee30b4510 /lib/observer/test | |
parent | ae089c72fb06b069675cbebcec10f0820cf16112 (diff) | |
download | otp-9ee5ad4f99f2540860f5acb357aac6b08d7e494e.tar.gz otp-9ee5ad4f99f2540860f5acb357aac6b08d7e494e.tar.bz2 otp-9ee5ad4f99f2540860f5acb357aac6b08d7e494e.zip |
cdv: Show progress bar while reading big data
Diffstat (limited to 'lib/observer/test')
-rw-r--r-- | lib/observer/test/crashdump_viewer_SUITE.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/observer/test/crashdump_viewer_SUITE.erl b/lib/observer/test/crashdump_viewer_SUITE.erl index 4449ec54d1..f9ac884743 100644 --- a/lib/observer/test/crashdump_viewer_SUITE.erl +++ b/lib/observer/test/crashdump_viewer_SUITE.erl @@ -574,7 +574,10 @@ do_create_dumps(DataDir,Rel) -> current -> CD3 = dump_with_args(DataDir,Rel,"instr","+Mim true"), CD4 = dump_with_strange_module_name(DataDir,Rel,"strangemodname"), - Bytes = rand:uniform(300000) + 100, + Tmp = dump_with_args(DataDir,Rel,"trunc_bytes",""), + {ok,#file_info{size=Max}} = file:read_file_info(Tmp), + ok = file:delete(Tmp), + Bytes = max(15,rand:uniform(Max)), CD5 = dump_with_args(DataDir,Rel,"trunc_bytes", "-env ERL_CRASH_DUMP_BYTES " ++ integer_to_list(Bytes)), |