aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-09-13 15:26:55 +0200
committerSiri Hansen <[email protected]>2017-09-18 11:07:08 +0200
commit9ee5ad4f99f2540860f5acb357aac6b08d7e494e (patch)
treeedcde8e08a77dd474e8275e96c71a53ee30b4510 /lib/observer/test
parentae089c72fb06b069675cbebcec10f0820cf16112 (diff)
downloadotp-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.erl5
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)),