[compiler-rt] 5bdb925 - [fuzzer] Fix UNSUPPORTED criteria for two tests

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 16 12:48:25 PST 2022


Author: Paul Robinson
Date: 2022-12-16T12:48:16-08:00
New Revision: 5bdb9254d92338d90b962de03bd3cd1afe9bf056

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

LOG: [fuzzer] Fix UNSUPPORTED criteria for two tests

Fuzzer might decide on a target arch different from the triple.

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/compressed.test
    compiler-rt/test/fuzzer/gc-sections.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/compressed.test b/compiler-rt/test/fuzzer/compressed.test
index d13d5ebd145f..284f7ed96ca8 100644
--- a/compiler-rt/test/fuzzer/compressed.test
+++ b/compiler-rt/test/fuzzer/compressed.test
@@ -2,7 +2,7 @@ REQUIRES: linux
 REQUIRES: zlib
 # zlib is "supported" on i386 even when only for x86_64, explicitly make i386
 # unsupported by this test.
-UNSUPPORTED: target={{(i386|arm).*}}
+UNSUPPORTED: i386, target=arm{{.*}}
 # Custom mutator should find this bug, w/o custom -- no chance.
 RUN: %cpp_compiler %S/CompressedTest.cpp -o %t-CompressedTestCustom -DCUSTOM_MUTATOR -lz
 RUN: %cpp_compiler %S/CompressedTest.cpp -o %t-CompressedTestPlain -lz

diff  --git a/compiler-rt/test/fuzzer/gc-sections.test b/compiler-rt/test/fuzzer/gc-sections.test
index 1b00b98304cb..415b80c291bd 100644
--- a/compiler-rt/test/fuzzer/gc-sections.test
+++ b/compiler-rt/test/fuzzer/gc-sections.test
@@ -1,6 +1,6 @@
 REQUIRES: linux, lld-available
 # LLD isn't pruning functions as we expect it to with ASAN on i386.
-UNSUPPORTED: target=i386{{.*}}
+UNSUPPORTED: i386
 
 No gc-sections:
 RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t


        


More information about the llvm-commits mailing list