On 05/25/2011 02:37 PM, Matthias Bolte wrote: > In both tests ASSERT (ftell (stdin) == -1); in line 45 fails. ftell > (stdin) returns 0 in this case. > > Found via libvirt on mingw with recent gnulib version: > f4c4af09bcf3f0497dc3347ecc0a0b3c9ee1ff63
In this particular case, test-ftell.sh is calling 'echo hi | ./test-ftell${EXEEXT}'. But ftell uses lseek, and gnulib already works around the mingw bug that lseek on pipes doesn't fail with ESPIPE. I'll have to see if I can reproduce this, and if there might be a recent regression in behavior here. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature