Skip to content

Commit 9f5811e

Browse files
[compiler-rt][HWAsan] Remove CHECK lines from test
These check lines were added in 144dae2 as part of reenabling on Linux. The check lines were added using an or clause though that gets short circuited, so were never actually executed. Fixing the short circuit so they do execute reveals the filecheck assertions no longer pass. Remove them for now given they did not exist in the original test. This would cause failures on the internal shell given the (<command>) syntax is not understood by the internal shell. Reviewers: vitalybuka, thurstond, fmayer Reviewed By: vitalybuka Pull Request: #166638
1 parent 1c75693 commit 9f5811e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 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 2>%t.out || (cat %t.out | FileCheck %s)
6+
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
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 2>%t.out || (cat %t.out | FileCheck %s)
11+
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
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,8 +26,6 @@
2626
//
2727
// UNSUPPORTED: android
2828

29-
// CHECK: FATAL: HWAddressSanitizer: Shadow range {{.*}} is not available
30-
3129
#include <assert.h>
3230
#include <sanitizer/allocator_interface.h>
3331
#include <sanitizer/hwasan_interface.h>

0 commit comments

Comments
 (0)