[compiler-rt] f665700 - [test][hwasan] Relax test condition

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 14:41:55 PDT 2023


Author: Vitaly Buka
Date: 2023-09-11T14:40:40-07:00
New Revision: f6657006475c100fa0b0c4718cbc5e602597720c

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

LOG: [test][hwasan] Relax test condition

The test is flaky after Kernel upgrade from 6.0 to 6.5.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c b/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
index 3271ab58ba26e55..0572a9217b67d99 100644
--- a/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
+++ b/compiler-rt/test/hwasan/TestCases/Linux/release-shadow.c
@@ -54,7 +54,7 @@ void test_rss_
diff erence(void *p) {
   size_t 
diff  = rss_before - rss_after;
   fprintf(stderr, "
diff  %zu\n", 
diff );
   // Check that the 
diff erence is at least close to kNumShadowPages.
-  assert(
diff  > kNumShadowPages / 4 * 3);
+  assert(
diff  > kNumShadowPages / 2);
 }
 
 int main() {


        


More information about the llvm-commits mailing list