Skip to content

Commit 101ba37

Browse files
committed
Try to set the test hermetic only in full build mode.
1 parent f55e5f6 commit 101ba37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libc/test/src/__support/File/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ if(NOT (TARGET libc.src.__support.threads.mutex) OR LIBC_TARGET_OS_IS_GPU)
55
return()
66
endif()
77

8+
# TODO: Investigate the precommit bots' failures of this test and re-enable it.
9+
# https://github.com/llvm/llvm-project/issues/128185.
10+
set(file_test_hermetic_only "")
11+
if(LIBC_TARGET_ARCHITECTURE_IS_X86_64 AND LIBC_TARGET_OS_IS_LINUX AND
12+
LLVM_LIBC_FULL_BUILD)
13+
set(file_test_hermetic_only "HERMETIC_TEST_ONLY")
14+
endif()
15+
816
add_libc_test(
917
file_test
18+
${file_test_hermetic_only}
1019
SUITE
1120
libc-support-tests
1221
SRCS
@@ -23,6 +32,7 @@ add_libc_test(
2332

2433
add_libc_test(
2534
platform_file_test
35+
${file_test_hermetic_only}
2636
SUITE
2737
libc-support-tests
2838
SRCS

0 commit comments

Comments
 (0)