From a7dc97fe7652d1d011d7e36b56c9fde44ffb6c87 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Fri, 12 Jan 2018 10:50:20 +0100 Subject: [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. --- lib/observer/test/crashdump_viewer_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/observer/test') 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 -> -- cgit v1.2.3