|
11 | 11 | // RUN: ulimit -v 22024290304 |
12 | 12 | // RUN: not %run %t malloc 2>&1 \ |
13 | 13 | // RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC,CHECK-CRASH |
14 | | -// RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t malloc 2>&1 \ |
| 14 | +// RUN: %export_asan_opts=allocator_may_return_null=0 |
| 15 | +// RUN: not %run %t malloc 2>&1 \ |
15 | 16 | // RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC,CHECK-CRASH |
16 | | -// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t malloc 2>&1 \ |
| 17 | +// RUN: %export_asan_opts=allocator_may_return_null=1 |
| 18 | +// RUN: %run %t malloc 2>&1 \ |
17 | 19 | // RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC,CHECK-NULL |
18 | | -// RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t calloc 2>&1 \ |
| 20 | +// RUN: %export_asan_opts=allocator_may_return_null=0 |
| 21 | +// RUN: not %run %t calloc 2>&1 \ |
19 | 22 | // RUN: | FileCheck %s --check-prefixes=CHECK-CALLOC,CHECK-CRASH |
20 | | -// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t calloc 2>&1 \ |
| 23 | +// RUN: %export_asan_opts=allocator_may_return_null=1 |
| 24 | +// RUN: %run %t calloc 2>&1 \ |
21 | 25 | // RUN: | FileCheck %s --check-prefixes=CHECK-CALLOC,CHECK-NULL |
22 | | -// RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc 2>&1 \ |
| 26 | +// RUN: %export_asan_opts=allocator_may_return_null=0 |
| 27 | +// RUN: not %run %t realloc 2>&1 \ |
23 | 28 | // RUN: | FileCheck %s --check-prefixes=CHECK-REALLOC,CHECK-CRASH |
24 | | -// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc 2>&1 \ |
| 29 | +// RUN: %export_asan_opts=allocator_may_return_null=1 |
| 30 | +// RUN: %run %t realloc 2>&1 \ |
25 | 31 | // RUN: | FileCheck %s --check-prefixes=CHECK-REALLOC,CHECK-NULL |
26 | 32 | // RUN: %export_asan_opts=allocator_may_return_null=0 |
27 | 33 | // RUN: not %run %t realloc-after-malloc 2>&1 \ |
|
0 commit comments