summaryrefslogtreecommitdiff
path: root/lib/tsan/lit_tests/malloc_overflow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tsan/lit_tests/malloc_overflow.cc')
-rw-r--r--lib/tsan/lit_tests/malloc_overflow.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tsan/lit_tests/malloc_overflow.cc b/lib/tsan/lit_tests/malloc_overflow.cc
index 19423c5f93f14..afbebc8bec443 100644
--- a/lib/tsan/lit_tests/malloc_overflow.cc
+++ b/lib/tsan/lit_tests/malloc_overflow.cc
@@ -1,4 +1,5 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 %s -o %t
+// RUN: TSAN_OPTIONS=allocator_may_return_null=1 %t 2>&1 | FileCheck %s
#include <stdio.h>
#include <stdlib.h>