aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-10-07 19:44:25 +0000
committerJoseph Myers <josmyers@redhat.com>2024-10-07 19:44:25 +0000
commit42c810c2cf3554afbdd60885b7da6bb4e702466f (patch)
treeead770a04aa955af20a444b8635844671cbcd13a /stdio-common/Makefile
parente67f8e6dbd5ec98578a775b2e09b254f071e0f57 (diff)
downloadglibc-42c810c2cf3554afbdd60885b7da6bb4e702466f.tar.xz
glibc-42c810c2cf3554afbdd60885b7da6bb4e702466f.zip
Add freopen special-case tests: thread cancellation
Add tests of freopen adding or removing "c" (non-cancelling I/O) from the mode string (so completing my planned tests of freopen with different features used in the mode strings). Note that it's in the nature of the uncertain time at which cancellation might act (possibly during freopen, possibly during subsequent reads) that these can leak memory or file descriptors, so these do not include leak tests. Tested for x86_64.
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r--stdio-common/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 44165a9c59..f7cb82230d 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -224,10 +224,12 @@ tests := \
tst-freopen4 \
tst-freopen5 \
tst-freopen6 \
+ tst-freopen7 \
tst-freopen64-2 \
tst-freopen64-3 \
tst-freopen64-4 \
tst-freopen64-6 \
+ tst-freopen64-7 \
tst-fseek \
tst-fwrite \
tst-fwrite-memstrm \
@@ -623,3 +625,6 @@ $(objpfx)tst-setvbuf1-cmp.out: tst-setvbuf1.expect $(objpfx)tst-setvbuf1.out
$(objpfx)tst-printf-round: $(libm)
$(objpfx)tst-scanf-round: $(libm)
+
+$(objpfx)tst-freopen7: $(shared-thread-library)
+$(objpfx)tst-freopen64-7: $(shared-thread-library)