Skip to content

Commit 6f4ed39

Browse files
authored
[libc] Enable hermetic tests for the stdio test suite (#67339)
Summary: There are several tests here that are not yet using the `add_libc_test`. Rather than do this individually we should just update these all at once. These all pass on my x64 build so I'm assuming it should be fine.
1 parent 273ece4 commit 6f4ed39

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

libc/test/src/stdio/CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
add_custom_target(libc_stdio_unittests)
22

3-
add_libc_unittest(
3+
add_libc_test(
44
fileop_test
55
SUITE
66
libc_stdio_unittests
@@ -21,7 +21,7 @@ add_libc_unittest(
2121
libc.src.stdio.fwrite
2222
)
2323

24-
add_libc_unittest(
24+
add_libc_test(
2525
ungetc_test
2626
SUITE
2727
libc_stdio_unittests
@@ -37,7 +37,7 @@ add_libc_unittest(
3737
libc.src.stdio.ungetc
3838
)
3939

40-
add_libc_unittest(
40+
add_libc_test(
4141
setbuf_test
4242
SUITE
4343
libc_stdio_unittests
@@ -53,7 +53,7 @@ add_libc_unittest(
5353
libc.src.stdio.ungetc
5454
)
5555

56-
add_libc_unittest(
56+
add_libc_test(
5757
setvbuf_test
5858
SUITE
5959
libc_stdio_unittests
@@ -69,7 +69,7 @@ add_libc_unittest(
6969
libc.src.stdio.setvbuf
7070
)
7171

72-
add_libc_unittest(
72+
add_libc_test(
7373
unlocked_fileop_test
7474
SUITE
7575
libc_stdio_unittests
@@ -89,7 +89,7 @@ add_libc_unittest(
8989
libc.src.stdio.fwrite_unlocked
9090
)
9191

92-
add_libc_unittest(
92+
add_libc_test(
9393
fopencookie_test
9494
SUITE
9595
libc_stdio_unittests
@@ -137,7 +137,7 @@ add_fp_unittest(
137137
${sprintf_test_copts}
138138
)
139139

140-
add_libc_unittest(
140+
add_libc_test(
141141
snprintf_test
142142
SUITE
143143
libc_stdio_unittests
@@ -163,7 +163,7 @@ else()
163163
set(use_system_file "-DLIBC_COPT_STDIO_USE_SYSTEM_FILE")
164164
endif()
165165

166-
add_libc_unittest(
166+
add_libc_test(
167167
fprintf_test
168168
SUITE
169169
libc_stdio_unittests
@@ -198,7 +198,7 @@ add_fp_unittest(
198198
libc.src.stdio.vsprintf
199199
)
200200

201-
add_libc_unittest(
201+
add_libc_test(
202202
vsnprintf_test
203203
SUITE
204204
libc_stdio_unittests
@@ -208,7 +208,7 @@ add_libc_unittest(
208208
libc.src.stdio.vsnprintf
209209
)
210210

211-
add_libc_unittest(
211+
add_libc_test(
212212
vfprintf_test
213213
SUITE
214214
libc_stdio_unittests
@@ -243,7 +243,7 @@ if(LLVM_LIBC_FULL_BUILD)
243243
)
244244
endif()
245245

246-
add_libc_unittest(
246+
add_libc_test(
247247
fscanf_test
248248
SUITE
249249
libc_stdio_unittests
@@ -257,7 +257,7 @@ add_libc_unittest(
257257
${use_system_file}
258258
)
259259

260-
add_libc_unittest(
260+
add_libc_test(
261261
sscanf_test
262262
SUITE
263263
libc_stdio_unittests
@@ -335,7 +335,7 @@ add_libc_test(
335335
)
336336

337337
if(${LIBC_TARGET_OS} STREQUAL "linux")
338-
add_libc_unittest(
338+
add_libc_test(
339339
remove_test
340340
SUITE
341341
libc_stdio_unittests
@@ -370,7 +370,7 @@ add_libc_test(
370370
libc.src.stdio.getc
371371
)
372372

373-
add_libc_unittest(
373+
add_libc_test(
374374
fgetc_unlocked_test
375375
SUITE
376376
libc_stdio_unittests
@@ -409,7 +409,7 @@ add_libc_test(
409409
libc.src.stdio.fwrite
410410
)
411411

412-
add_libc_unittest(
412+
add_libc_test(
413413
ftell_test
414414
SUITE
415415
libc_stdio_unittests

0 commit comments

Comments
 (0)