]> sourceware.org Git - glibc.git/commit
Add freopen special-case tests: thread cancellation
authorJoseph Myers <josmyers@redhat.com>
Mon, 7 Oct 2024 19:44:25 +0000 (19:44 +0000)
committerJoseph Myers <josmyers@redhat.com>
Mon, 7 Oct 2024 19:44:25 +0000 (19:44 +0000)
commit42c810c2cf3554afbdd60885b7da6bb4e702466f
treeead770a04aa955af20a444b8635844671cbcd13a
parente67f8e6dbd5ec98578a775b2e09b254f071e0f57
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.
stdio-common/Makefile
stdio-common/tst-freopen64-7.c [new file with mode: 0644]
stdio-common/tst-freopen7-main.c [new file with mode: 0644]
stdio-common/tst-freopen7.c [new file with mode: 0644]
This page took 0.050574 seconds and 5 git commands to generate.