test: silence a valgrind warning

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1370>
This commit is contained in:
Peter Hutterer 2025-11-27 09:32:13 +10:00
parent 7e8298e9ec
commit 39aea2a8d6

View file

@ -123,7 +123,8 @@ static void
close_pipes(int fds[_FD_LAST])
{
for (int i = 0; i < _FD_LAST; i++) {
fsync(fds[i]);
if (fds[i] != -1)
fsync(fds[i]);
xclose(&fds[i]);
}
}