[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unlink test failure on MacOS X

From: Eric Blake
Subject: Re: unlink test failure on MacOS X
Date: Mon, 15 Mar 2010 19:09:45 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]