bug-gnulib
[Top][All Lists]
Advanced

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

Re: readlink on AIX 7.1BETA


From: Eric Blake
Subject: Re: readlink on AIX 7.1BETA
Date: Fri, 30 Jul 2010 15:08:54 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1

On 07/30/2010 03:04 PM, Rainer Tammer wrote:
> Hello Bruno,
> 
> Bruno Haible wrote:
>> Hello Rainer,
>>
>> Regarding this failure:
>>
>>   test-readlink.h:54: assertion failed
>>   FAIL: test-readlink
>>
>> Could you please show what is the value of errno between these ASSERT 
>> statements:
>>
>>   ASSERT (func (BASE "file/", buf, sizeof buf) == -1);
>>   printf ("errno = %d\n", errno); perror ("errno was"); /* INSERT THIS LINE 
>> */
>>   ASSERT (errno == ENOTDIR);
>>
>>   
> # ./test-readlink
> errno = 22                          (erno.h: #define EINVAL 22 /*
> Invalid argument */)
> errno was: Error 0
> test-readlink.h:55: assertion failed
> 
>> Depending on this value, we may want to either change the autoconf test for
>> readlink, or change the test.

Is readlink already being replaced due to other bugs?  (I guess I need
to look more closely at your logs.)  If so, then I think the replacement
should work around this.  If not, I'm perfectly fine relaxing the test
(there's already a number of places where we can't guarantee the same
errno as required by POSIX without lots of bloat; as long as a
reasonable error happens, it's generally okay for a looser test).

-- 
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]