[compiler-rt][fuzzer] Disable 2 tests for Arm Thumb builds
authorDavid Spickett <david.spickett@linaro.org>
Tue, 1 Feb 2022 10:11:02 +0000 (10:11 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 1 Feb 2022 10:13:23 +0000 (10:13 +0000)
These tests appear to be causing timeouts on our silent
Thumbv7 bot: https://lab.llvm.org/staging/#/builders/162/builds/260

It is possible they would complete given enough time. value-profile-switch
seems to take a long time even on a powerful Armv8 machine.

compiler-rt/test/fuzzer/exit_on_src_pos.test
compiler-rt/test/fuzzer/lit.cfg.py
compiler-rt/test/fuzzer/lit.site.cfg.py.in
compiler-rt/test/fuzzer/value-profile-switch.test

index d8fb662..881d314 100644 (file)
@@ -3,6 +3,10 @@
 # TODO: Find out why test fails on Darwin with -O2.
 # Binaries must end in .exe or else symbolization will break on Windows because of how periods
 # in expansion of %t cause the compiler to overwrite .lib and .exp files.
+
+# Test does not complete on Armv7 Thumb build bot
+UNSUPPORTED: thumb
+
 RUN: %cpp_compiler -O0 %S/SimpleTest.cpp -o %t-SimpleTest.exe -mllvm -use-unknown-locations=Disable
 RUN: %cpp_compiler -O0 %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest.exe
 
index d54ee20..f0140c8 100644 (file)
@@ -58,6 +58,9 @@ if sys.platform.startswith('linux'):
 else:
   lit_config.note('linux feature unavailable')
 
+if config.arm_thumb:
+  config.available_features.add('thumb')
+
 config.substitutions.append(('%build_dir', config.cmake_binary_dir))
 libfuzzer_src_root = os.path.join(config.compiler_rt_src_root, "lib", "fuzzer")
 config.substitutions.append(('%libfuzzer_src', libfuzzer_src_root))
index 218688c..b883022 100644 (file)
@@ -7,6 +7,7 @@ config.stdlib = "@LIBFUZZER_TEST_STDLIB@"
 config.apple_platform = "@LIBFUZZER_TEST_APPLE_PLATFORM@"
 config.apple_platform_min_deployment_target_flag = "@LIBFUZZER_TEST_MIN_DEPLOYMENT_TARGET_FLAG@"
 config.name_suffix = "@LIBFUZZER_TEST_CONFIG_SUFFIX@"
+config.arm_thumb = "@COMPILER_RT_ARM_THUMB@"
 
 config.osx_sysroot_flag = "@OSX_SYSROOT_FLAG@"
 config.cmake_binary_dir = "@CMAKE_BINARY_DIR@"
index 05a9ca7..35409ef 100644 (file)
@@ -1,3 +1,5 @@
+# Test does not complete on Armv7 Thumb build bot
+UNSUPPORTED: thumb
 UNSUPPORTED: ios
 CHECK: BINGO
 RUN: %cpp_compiler %S/SwitchTest.cpp -o %t-SwitchTest