[compiler-rt] 81ff4d6 - [sanitizer_common][test] Fix huge_malloc.c UNSUPPORTED syntax

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 2 04:27:30 PDT 2023


Author: Rainer Orth
Date: 2023-07-02T13:27:04+02:00
New Revision: 81ff4d6f2e45d42060992f724ec305c507f31505

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

LOG: [sanitizer_common][test] Fix huge_malloc.c UNSUPPORTED syntax

`lit` doesn't accept arbitrary substrings of the target triple any longer,
so d5a779b5a39b655ed9fafedaacbb017c46f5dbfe
<https://reviews.llvm.org/rGd5a779b5a39b655ed9fafedaacbb017c46f5dbfe> has
no effect.

Instead, this patch uses the `target=` syntax as all other tests in
`compiler-rt`.

Tested on `amd64-pc-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D154298

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
index c7322bb0b2efba..16ebeda5315e02 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c
@@ -13,7 +13,7 @@
 // UNSUPPORTED: hwasan
 
 // FIXME: Something wrong with MADV_FREE or MAP_NORESERVE there.
-// UNSUPPORTED: solaris
+// UNSUPPORTED: target={{.*solaris.*}}
 
 void *p;
 


        


More information about the llvm-commits mailing list