bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils inaccessible test fails on HP-UX with CVS build


From: Jim Meyering
Subject: Re: coreutils inaccessible test fails on HP-UX with CVS build
Date: Fri, 16 Jun 2006 08:16:49 +0200

address@hidden (Bob Proulx) wrote:
> Building CVS corutils on HP-UX 11.11 produces the following test
> failure for the inaccessible test.  It is expected to fail.  But it is
> expected to fail with a different message.  I am not sure what the
> best way to handle differences such as this.
...
> < rm: unable to record current working directory: Permission denied
> ---
>> rm: cannot remove `rel': Permission denied
> + exit 1
> + exit 1
> + status=1
> + cd /usr/local/build/coreutils/hppa-hpux11.11-gcc-coreutils/build/tests/rm
> + chmod -R u+rwx inaccessible.tmp
> + rm -rf inaccessible.tmp
> + exit 1
> FAIL: inaccessible

Hi Bob,

Thanks for reporting that.

On HP-UX, rm has to use a different code path for that case, since the
system provides neither openat-like functions, nor a /proc/self/fd-like
way to emulate them.

Does this patch solve the problem?

Index: inaccessible
===================================================================
RCS file: /fetish/cu/tests/rm/inaccessible,v
retrieving revision 1.4
diff -u -p -r1.4 inaccessible
--- inaccessible        28 May 2006 12:11:35 -0000      1.4
+++ inaccessible        16 Jun 2006 06:11:29 -0000
@@ -44,6 +44,10 @@ EOF
 # to the expected one:
 sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
 
+# HP-UX 11.11 goes a different route, too.
+# ...: unable to record current working directory: Permission denied
+sed 's/: unable to record current.*/: Permission denied/'<out>o1;mv o1 out
+
 cmp out exp || fail=1
 test $fail = 1 && diff out exp 2> /dev/null
 




reply via email to

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