File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
compiler-rt/test/hwasan/TestCases/Linux Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 33// Default compiler instrumentation works with any shadow base (dynamic or fixed).
44// RUN: %clang_hwasan %s -o %t
55// RUN: %run %t
6- // RUN: HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
7- // RUN: HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
6+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
7+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
88//
99// If -hwasan-mapping-offset is set, then the fixed_shadow_base needs to match.
1010// RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=263878495698944 -o %t
11- // RUN: HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
12- // RUN: HWASAN_OPTIONS=fixed_shadow_base=4398046511104 not %run %t
11+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
12+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 not %run %t
1313
1414// RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=4398046511104 -o %t
15- // RUN: HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
16- // RUN: HWASAN_OPTIONS=fixed_shadow_base=263878495698944 not %run %t
15+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
16+ // RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 not %run %t
1717//
1818// Note: if fixed_shadow_base is not set, compiler-rt will dynamically choose a
1919// shadow base, which has a tiny but non-zero probability of matching the
You can’t perform that action at this time.
0 commit comments