]> git.ipfire.org Git - thirdparty/glibc.git/commit
libio: Update tst-wfile-sync to not depend on stdin
authorStafford Horne <shorne@gmail.com>
Tue, 5 Oct 2021 23:31:12 +0000 (08:31 +0900)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 12 Oct 2021 16:25:43 +0000 (13:25 -0300)
commit8faa1e04493f23b16f473d21a3a5bc49b781ed2a
treed206f45059cc408fb72a67484a80510c2f364efd
parent171ab1af562836dd9c56756922efb69eafa9eb5c
libio: Update tst-wfile-sync to not depend on stdin

The test expects stdin to be a file which is not the case when running
tests over ssh where stdin is piped in.

The test fails with:
  error: xlseek.c:27: lseek64 (0, 0, 1): Illegal seek

Update the test to create a temporary file and use that to perform the
test.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
libio/tst-wfile-sync.c
libio/tst-wfile-sync.input [deleted file]