mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-20 01:12:17 +08:00
stdio: Add more setvbuf tests
This commit is contained in:
@@ -378,7 +378,9 @@ endif
|
||||
endif
|
||||
|
||||
tests-container += \
|
||||
tst-popen3
|
||||
tst-popen3 \
|
||||
tst-setvbuf2 \
|
||||
tst-setvbuf2-ind
|
||||
# tests-container
|
||||
|
||||
generated += \
|
||||
@@ -390,6 +392,8 @@ generated += \
|
||||
|
||||
tests-internal = \
|
||||
tst-grouping_iterator \
|
||||
tst-setvbuf2 \
|
||||
tst-setvbuf2-ind \
|
||||
# tests-internal
|
||||
|
||||
test-srcs = \
|
||||
@@ -762,6 +766,10 @@ $(objpfx)tst-setvbuf1-cmp.out: tst-setvbuf1.expect $(objpfx)tst-setvbuf1.out
|
||||
cmp $^ > $@; \
|
||||
$(evaluate-test)
|
||||
|
||||
CFLAGS-tst-setvbuf2.c += -DIND_PROC=\"$(objpfx)tst-setvbuf2-ind\"
|
||||
$(objpfx)tst-setvbuf2-ind : $(objpfx)tst-setvbuf2-ind.o
|
||||
$(objpfx)tst-setvbuf2.out: $(objpfx)tst-setvbuf2-ind
|
||||
|
||||
$(objpfx)tst-printf-round: $(libm)
|
||||
$(objpfx)tst-scanf-round: $(libm)
|
||||
|
||||
|
||||
2
stdio-common/tst-setvbuf2-ind.c
Normal file
2
stdio-common/tst-setvbuf2-ind.c
Normal file
@@ -0,0 +1,2 @@
|
||||
#define INDEPENDENT_PART 1
|
||||
#include "tst-setvbuf2.c"
|
||||
1030
stdio-common/tst-setvbuf2.c
Normal file
1030
stdio-common/tst-setvbuf2.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user