From: Jonathan Metzman Date: Mon, 16 Nov 2020 17:04:54 +0000 (-0800) Subject: [fuzzer] Add allocator_may_return_null to uncaught-exception.test. X-Git-Tag: llvmorg-13-init~5977 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3be1287091463f4099cdb1710883645329cda7e;p=platform%2Fupstream%2Fllvm.git [fuzzer] Add allocator_may_return_null to uncaught-exception.test. Speculative fix for failing unittest. --- diff --git a/compiler-rt/test/fuzzer/uncaught-exception.test b/compiler-rt/test/fuzzer/uncaught-exception.test index 28c423a..ea011d0 100644 --- a/compiler-rt/test/fuzzer/uncaught-exception.test +++ b/compiler-rt/test/fuzzer/uncaught-exception.test @@ -2,7 +2,7 @@ # crash RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException -RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s +RUN: ASAN_OPTIONS=allocator_may_return_null=1 not %run %t-UncaughtException 2>&1 | FileCheck %s CHECK: ERROR: libFuzzer: deadly signal CHECK: Test unit written to ./crash