[compiler-rt] a3be128 - [fuzzer] Add allocator_may_return_null to uncaught-exception.test.

Jonathan Metzman via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 09:13:38 PST 2020


Author: Jonathan Metzman
Date: 2020-11-16T09:13:25-08:00
New Revision: a3be1287091463f4099cdb1710883645329cda7e

URL: https://github.com/llvm/llvm-project/commit/a3be1287091463f4099cdb1710883645329cda7e
DIFF: https://github.com/llvm/llvm-project/commit/a3be1287091463f4099cdb1710883645329cda7e.diff

LOG: [fuzzer] Add allocator_may_return_null to uncaught-exception.test.

Speculative fix for failing unittest.

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/uncaught-exception.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/uncaught-exception.test b/compiler-rt/test/fuzzer/uncaught-exception.test
index 28c423a4e431..ea011d0dd4fa 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


        


More information about the llvm-commits mailing list