Skip to content

Commit cc8478b

Browse files
Revert "[compiler-rt][HWAsan] Remove CHECK lines from test"
This reverts commit 9f5811e. It looks like this caused some test failures: 1. https://lab.llvm.org/buildbot/#/builders/51/builds/26529 2. https://lab.llvm.org/buildbot/#/builders/198/builds/9462
1 parent bf2653e commit cc8478b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
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: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
6+
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
77
// 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: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
11+
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
1212
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 not %run %t
1313

1414
// RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=4398046511104 -o %t
@@ -26,6 +26,8 @@
2626
//
2727
// UNSUPPORTED: android
2828

29+
// CHECK: FATAL: HWAddressSanitizer: Shadow range {{.*}} is not available
30+
2931
#include <assert.h>
3032
#include <sanitizer/allocator_interface.h>
3133
#include <sanitizer/hwasan_interface.h>

0 commit comments

Comments
 (0)