[compiler-rt] 466fab5 - [lsan] Mark 2 new lsan tests unsupported on arm-linux

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 07:59:21 PDT 2021


Author: David Spickett
Date: 2021-04-08T15:57:46+01:00
New Revision: 466fab5c9410abb79f1a70c5075147e9a768124e

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

LOG: [lsan] Mark 2 new lsan tests unsupported on arm-linux

These tests were added in:
1daa48f005bd477ba8711ecdf91a1f1515f01383
59e422c90bf4796fc73237e838d8954b4e2099b1

malloc_zero.c and realloc_too_big.c fail when only
leak sanitizer is enabled.
http://lab.llvm.org:8011/#/builders/59/builds/1635
(also in an armv8 32 bit build)

(I would XFAIL them but the same test is run with
address and leak sanitizer enabled and that one does
pass)

Added: 
    

Modified: 
    compiler-rt/test/lsan/TestCases/malloc_zero.c
    compiler-rt/test/lsan/TestCases/realloc_too_big.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lsan/TestCases/malloc_zero.c b/compiler-rt/test/lsan/TestCases/malloc_zero.c
index daefe71ab1d64..5c8d1850a0f9a 100644
--- a/compiler-rt/test/lsan/TestCases/malloc_zero.c
+++ b/compiler-rt/test/lsan/TestCases/malloc_zero.c
@@ -1,6 +1,9 @@
 // RUN: %clang_lsan %s -o %t
 // RUN: %env_lsan_opts=use_stacks=0 not %run %t 2>&1 | FileCheck %s
 
+/// Fails when only leak sanitizer is enabled
+// UNSUPPORTED: arm-linux, armhf-linux
+
 #include <stdio.h>
 #include <stdlib.h>
 

diff  --git a/compiler-rt/test/lsan/TestCases/realloc_too_big.c b/compiler-rt/test/lsan/TestCases/realloc_too_big.c
index e4d2431a3dfa7..bb1316024b5cb 100644
--- a/compiler-rt/test/lsan/TestCases/realloc_too_big.c
+++ b/compiler-rt/test/lsan/TestCases/realloc_too_big.c
@@ -1,6 +1,9 @@
 // RUN: %clang_lsan %s -o %t
 // RUN: %env_lsan_opts=allocator_may_return_null=1:max_allocation_size_mb=1:use_stacks=0 not %run %t 2>&1 | FileCheck %s
 
+/// Fails when only leak sanitizer is enabled
+// UNSUPPORTED: arm-linux, armhf-linux
+
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>


        


More information about the llvm-commits mailing list