aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-01-12 10:50:20 +0100
committerSiri Hansen <[email protected]>2018-01-12 11:01:28 +0100
commita7dc97fe7652d1d011d7e36b56c9fde44ffb6c87 (patch)
tree3c7bd4def02a8cb811e8db630019d28f69cb96fe /lib
parent00c255c94ffad33a57e9604cee67cde5f717b99a (diff)
downloadotp-a7dc97fe7652d1d011d7e36b56c9fde44ffb6c87.tar.gz
otp-a7dc97fe7652d1d011d7e36b56c9fde44ffb6c87.tar.bz2
otp-a7dc97fe7652d1d011d7e36b56c9fde44ffb6c87.zip
[cdv] Fix test of size limit reached on crash dump, again
This test failed every now and then since the selected max size could be equal to actual size of the dump - so the dump was not truncated. This is now corrected.
Diffstat (limited to 'lib')
-rw-r--r--lib/observer/test/crashdump_viewer_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/test/crashdump_viewer_SUITE.erl b/lib/observer/test/crashdump_viewer_SUITE.erl
index 32773a779e..41ca3f3ce9 100644
--- a/lib/observer/test/crashdump_viewer_SUITE.erl
+++ b/lib/observer/test/crashdump_viewer_SUITE.erl
@@ -820,10 +820,10 @@ dump_with_size_limit_reached(DataDir,Rel,DumpName,Max) ->
"-env ERL_CRASH_DUMP_BYTES " ++
integer_to_list(Bytes)),
{ok,#file_info{size=Size}} = file:read_file_info(CD),
- if Size < Bytes ->
+ if Size =< Bytes ->
%% This means that the dump was actually smaller than the
%% randomly selected truncation size, so we'll just do it
- %% again with a smaller numer
+ %% again with a smaller number
ok = file:delete(CD),
dump_with_size_limit_reached(DataDir,Rel,DumpName,Size-3);
true ->