bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-8.3: test failed: ls/stat-dtype and touch/no-dereference


From: Pádraig Brady
Subject: Re: coreutils-8.3: test failed: ls/stat-dtype and touch/no-dereference
Date: Sat, 09 Jan 2010 01:14:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

On 08/01/10 18:55, Eric Blake wrote:
According to Pádraig Brady on 1/8/2010 10:13 AM:
touch: setting times of `dangling': Function not implemented

The test is assuming that because glibc declared utimensat, that it will
work.  But obviously it doesn't, because your kernel is too old.  I don't
know of any better way to filter out this test, other than to add logic
that skips (rather than fails) if touch dies with ENOSYS.

Yes we should skip in this case, and there are probably
lots of other tests that would need skipping on unsupported
operations also. Detecting "unsupported" generally though may
be tricky as I'm not sure can we depend on particular error numbers.

But for this _particular_ test, the error text will always include
"Function not implemented".  Why?  Because so far, Linux is the only
system where utimensat() exists at link time but where it fails with
ENOSYS.  All other platforms either lack utimensat, or utimensat succeeds
as documented.

So it seems like this would do the trick (but I have not yet tested it on
a system with the mismatch between kernel and glibc, so no ChangeLog yet...)

Fair enough. The general method couldn't be used anyway
unless tail et. al. were modified to return the actual errno
rather than just [01].

cheers,
Pádraig.




reply via email to

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