[PATCH 0/3] Update tests for 'xfmemopen' and 'xfclose' use
Maciej W. Rozycki
macro@orcam.me.uk
Sun Aug 24 20:22:23 GMT 2025
Hi,
Following a conversation with Adhemerval earlier on[1] here's a small
patch series to convert tests for 'xfmemopen' use.
I chose to add 'xfmemopen' with a change on its own so as to follow good
coding practices, but also to aid with test backporting downstream, by not
requiring to pull modifications to existing tests where a new test relies
on 'xfmemopen'.
In the course of making this update I've come across a couple of places
still using 'fclose' with no error checking or plain missing the call
(including mine, sigh...), so I've added another patch on top. It does
depend on the change for 'xfmemopen' for mechanical reasons: either has to
add #include <support/xstdio.h> where there's no such directive already.
Verified natively with 'powerpc64le-linux-gnu' configuration. OK to
apply?
References:
[1] <https://inbox.sourceware.org/libc-alpha/3487d7be-2661-5e1e-2d6f-c949e1699df0@redhat.com/>
Maciej
More information about the Libc-alpha
mailing list