Skip to content

Commit df3d121

Browse files
committed
[compiler-rt][fuzzer] Disable 2 tests for Arm Thumb builds
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.
1 parent 3885879 commit df3d121

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

compiler-rt/test/fuzzer/exit_on_src_pos.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# TODO: Find out why test fails on Darwin with -O2.
44
# Binaries must end in .exe or else symbolization will break on Windows because of how periods
55
# in expansion of %t cause the compiler to overwrite .lib and .exp files.
6+
7+
# Test does not complete on Armv7 Thumb build bot
8+
UNSUPPORTED: thumb
9+
610
RUN: %cpp_compiler -O0 %S/SimpleTest.cpp -o %t-SimpleTest.exe -mllvm -use-unknown-locations=Disable
711
RUN: %cpp_compiler -O0 %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest.exe
812

compiler-rt/test/fuzzer/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
else:
5959
lit_config.note('linux feature unavailable')
6060

61+
if config.arm_thumb:
62+
config.available_features.add('thumb')
63+
6164
config.substitutions.append(('%build_dir', config.cmake_binary_dir))
6265
libfuzzer_src_root = os.path.join(config.compiler_rt_src_root, "lib", "fuzzer")
6366
config.substitutions.append(('%libfuzzer_src', libfuzzer_src_root))

compiler-rt/test/fuzzer/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config.stdlib = "@LIBFUZZER_TEST_STDLIB@"
77
config.apple_platform = "@LIBFUZZER_TEST_APPLE_PLATFORM@"
88
config.apple_platform_min_deployment_target_flag = "@LIBFUZZER_TEST_MIN_DEPLOYMENT_TARGET_FLAG@"
99
config.name_suffix = "@LIBFUZZER_TEST_CONFIG_SUFFIX@"
10+
config.arm_thumb = "@COMPILER_RT_ARM_THUMB@"
1011

1112
config.osx_sysroot_flag = "@OSX_SYSROOT_FLAG@"
1213
config.cmake_binary_dir = "@CMAKE_BINARY_DIR@"

compiler-rt/test/fuzzer/value-profile-switch.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Test does not complete on Armv7 Thumb build bot
2+
UNSUPPORTED: thumb
13
UNSUPPORTED: ios
24
CHECK: BINGO
35
RUN: %cpp_compiler %S/SwitchTest.cpp -o %t-SwitchTest

0 commit comments

Comments
 (0)