[compiler-rt] 9f5811e - [compiler-rt][HWAsan] Remove CHECK lines from test

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 00:06:36 PST 2025


Author: Aiden Grossman
Date: 2025-11-06T00:06:32-08:00
New Revision: 9f5811ec6bd5e9f99dd22c4a06e6e984cb15ae4b

URL: https://github.com/llvm/llvm-project/commit/9f5811ec6bd5e9f99dd22c4a06e6e984cb15ae4b
DIFF: https://github.com/llvm/llvm-project/commit/9f5811ec6bd5e9f99dd22c4a06e6e984cb15ae4b.diff

LOG: [compiler-rt][HWAsan] Remove CHECK lines from test

These check lines were added in 144dae207a3b1750ec94553248bf44c359b6d452
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: https://github.com/llvm/llvm-project/pull/166638

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c b/compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c
index fc83b213561c8..08a04fc305ffb 100644
--- a/compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c
+++ b/compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c
@@ -3,12 +3,12 @@
 // Default compiler instrumentation works with any shadow base (dynamic or fixed).
 // RUN: %clang_hwasan %s -o %t
 // RUN: %run %t
-// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
+// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
 // RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
 //
 // If -hwasan-mapping-offset is set, then the fixed_shadow_base needs to match.
 // RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=263878495698944 -o %t
-// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
+// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
 // RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 not %run %t
 
 // RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=4398046511104 -o %t
@@ -26,8 +26,6 @@
 //
 // UNSUPPORTED: android
 
-// CHECK: FATAL: HWAddressSanitizer: Shadow range {{.*}} is not available
-
 #include <assert.h>
 #include <sanitizer/allocator_interface.h>
 #include <sanitizer/hwasan_interface.h>


        


More information about the llvm-commits mailing list