On 03/14/2010 06:16 PM, Bruno Haible wrote: > Hi Jim, Eric, > > On MacOS X 10.5, the unlink() and unlinkat() tests fail: > > test-unlink.h:49: assertion failed > /bin/sh: line 1: 17670 Abort trap EXEEXT='' srcdir='.' > ${dir}$tst > FAIL: test-unlink
Thanks for investigating. This has been reported on the coreutils list before, but we have not had time to further deal with it. > The reason is that unlink("..") returns 0 without having done any side effects > on the file system. Likewise for unlink("../.."). Violation of POSIX, therefore a bug in MacOS. Gnulib should detect this in the .m4 file, and work around it in the .c file (I believe I can make the workaround lightweight enough to not penalize any other system). I'm on travel through Tuesday, but will look into this on Wednesday if Jim doesn't beat me to it. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature