Skip to content

[libc] Enable hermetic tests for the stdio test suite #67339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions libc/test/src/stdio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
add_custom_target(libc_stdio_unittests)

add_libc_unittest(
add_libc_test(
fileop_test
SUITE
libc_stdio_unittests
Expand All @@ -21,7 +21,7 @@ add_libc_unittest(
libc.src.stdio.fwrite
)

add_libc_unittest(
add_libc_test(
ungetc_test
SUITE
libc_stdio_unittests
Expand All @@ -37,7 +37,7 @@ add_libc_unittest(
libc.src.stdio.ungetc
)

add_libc_unittest(
add_libc_test(
setbuf_test
SUITE
libc_stdio_unittests
Expand All @@ -53,7 +53,7 @@ add_libc_unittest(
libc.src.stdio.ungetc
)

add_libc_unittest(
add_libc_test(
setvbuf_test
SUITE
libc_stdio_unittests
Expand All @@ -69,7 +69,7 @@ add_libc_unittest(
libc.src.stdio.setvbuf
)

add_libc_unittest(
add_libc_test(
unlocked_fileop_test
SUITE
libc_stdio_unittests
Expand All @@ -89,7 +89,7 @@ add_libc_unittest(
libc.src.stdio.fwrite_unlocked
)

add_libc_unittest(
add_libc_test(
fopencookie_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -137,7 +137,7 @@ add_fp_unittest(
${sprintf_test_copts}
)

add_libc_unittest(
add_libc_test(
snprintf_test
SUITE
libc_stdio_unittests
Expand All @@ -163,7 +163,7 @@ else()
set(use_system_file "-DLIBC_COPT_STDIO_USE_SYSTEM_FILE")
endif()

add_libc_unittest(
add_libc_test(
fprintf_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -198,7 +198,7 @@ add_fp_unittest(
libc.src.stdio.vsprintf
)

add_libc_unittest(
add_libc_test(
vsnprintf_test
SUITE
libc_stdio_unittests
Expand All @@ -208,7 +208,7 @@ add_libc_unittest(
libc.src.stdio.vsnprintf
)

add_libc_unittest(
add_libc_test(
vfprintf_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -243,7 +243,7 @@ if(LLVM_LIBC_FULL_BUILD)
)
endif()

add_libc_unittest(
add_libc_test(
fscanf_test
SUITE
libc_stdio_unittests
Expand All @@ -257,7 +257,7 @@ add_libc_unittest(
${use_system_file}
)

add_libc_unittest(
add_libc_test(
sscanf_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -335,7 +335,7 @@ add_libc_test(
)

if(${LIBC_TARGET_OS} STREQUAL "linux")
add_libc_unittest(
add_libc_test(
remove_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -370,7 +370,7 @@ add_libc_test(
libc.src.stdio.getc
)

add_libc_unittest(
add_libc_test(
fgetc_unlocked_test
SUITE
libc_stdio_unittests
Expand Down Expand Up @@ -409,7 +409,7 @@ add_libc_test(
libc.src.stdio.fwrite
)

add_libc_unittest(
add_libc_test(
ftell_test
SUITE
libc_stdio_unittests
Expand Down