Skip to content

Commit 0c2ba3d

Browse files
workaround
1 parent 9343918 commit 0c2ba3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-rt/test/asan/TestCases/Linux/allocator_oom_test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
// RUN: | FileCheck %s --check-prefixes=CHECK-REALLOC,CHECK-CRASH
2424
// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc 2>&1 \
2525
// RUN: | FileCheck %s --check-prefixes=CHECK-REALLOC,CHECK-NULL
26-
// RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 \
26+
// RUN: %export_asan_opts=allocator_may_return_null=0
27+
// RUN: not %run %t realloc-after-malloc 2>&1 \
2728
// RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-CRASH
28-
// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 \
29+
// RUN: %export_asan_opts=allocator_may_return_null=1
30+
// RUN: %run %t realloc-after-malloc 2>&1 \
2931
// RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-NULL
3032

3133
// ASan shadow memory on s390 is too large for this test.

0 commit comments

Comments
 (0)