bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils CVS test failure on HP-UX 11i


From: Albert Chin
Subject: Re: coreutils CVS test failure on HP-UX 11i
Date: Sun, 30 May 2004 04:11:36 -0500
User-agent: Mutt/1.5.6i

On Sun, May 30, 2004 at 12:36:40AM +0200, Jim Meyering wrote:
> I wrote:
> > Thanks for reporting that.
> > I added that test just recently to exercise a bug I found and fixed in rm.
> >
> >     2004-05-21  Jim Meyering  <address@hidden>
> >
> >             * tests/rm/inaccessible: New test for the above fix.
> >             * tests/rm/Makefile.am (TESTS): Add inaccessible.
> >
> > I hadn't finished reviewing it, then was away for a week.
> > I'll check in the fix pretty soon.
> 
> FYI, I've just checked in a fix.
> The savannah CVS repository should be sync'd within the hour.

Ok, thanks, that fixed it. I just synced CVS and have two remaining
HP-UX 11i failures. I think both failures are because, on HP-UX, you
cannot remove a directory accessed by a process (i.e. if it's the cwd
of a shell). Should these failures be ignored on HP?

$ cd /opt/build/coreutils-5.3.0/tests/rm
$ VERBOSE=yes gmake check TESTS=inaccessible
gmake  check-TESTS
gmake[1]: Entering directory `/opt/build/coreutils-5.3.0/tests/rm'
+ rm --version
rm (coreutils) 5.3.0
Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ PRIV_CHECK_ARG=require-non-root
+ . ./../priv-check
+ who=by an unprivileged user
+ + id -u
my_uid=1000
+ test 0 = 0
+ test 1000 = 0
+ give_msg=no
+ test no = yes
+ + pwd
pwd=/opt/build/coreutils-5.3.0/tests/rm
+ + echo ./inaccessible
+ sed s,.*/,,
t0=inaccessible.tmp
+ tmp=inaccessible.tmp/2811
+ trap status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status 0
+ trap (exit $?); exit $? 1 2 13 15
+ framework_failure=0
+ mkdir -p inaccessible.tmp/2811
+ cd inaccessible.tmp/2811
+ mkdir abs1 abs2 no-access
+ test 0 = 1
+ fail=0
+ p=/opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811
+ 2> out
+ test -d /opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs1
+ fail=1
+ test -d /opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs2
+ fail=1
+ cat
+ 0< /var/tmp/sh2811.2 1> exp
+ cmp out exp
out exp differ: char 1, line 1
+ fail=1
+ test 1 = 1
+ diff out exp
+ 2> /dev/null
1,4d0
< + cd no-access
< + chmod 0 .
< + rm -r /opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs1 rel 
/opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs2
< rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs1': Device busy
6d1
< rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/inaccessible.tmp/2811/abs2': Device busy
+ exit 1
+ exit 1
+ status=1
+ cd /opt/build/coreutils-5.3.0/tests/rm
+ chmod -R u+rwx inaccessible.tmp
+ rm -rf inaccessible.tmp
+ exit 1
FAIL: inaccessible
======================================
1 of 1 tests failed
Please report to address@hidden
======================================
gmake[1]: *** [check-TESTS] Error 1
gmake[1]: Leaving directory `/opt/build/coreutils-5.3.0/tests/rm'
gmake: *** [check-am] Error 2

$ VERBOSE=yes gmake check TESTS=unread3
gmake  check-TESTS
gmake[1]: Entering directory `/opt/build/coreutils-5.3.0/tests/rm'
+ rm --version
rm (coreutils) 5.3.0
Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ PRIV_CHECK_ARG=require-non-root
+ . ./../priv-check
+ who=by an unprivileged user
+ + id -u
my_uid=1000
+ test 0 = 0
+ test 1000 = 0
+ give_msg=no
+ test no = yes
+ + pwd
pwd=/opt/build/coreutils-5.3.0/tests/rm
+ + echo ./unread3
+ sed s,.*/,,
t0=unread3.tmp
+ tmp=unread3.tmp/2782
+ trap status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status 0
+ trap (exit $?); exit $? 1 2 13 15
+ framework_failure=0
+ mkdir -p unread3.tmp/2782
+ cd unread3.tmp/2782
+ mkdir -p a/1 b c d/2 e/3
+ test 0 = 1
+ fail=0
+ cd c
+ chmod u=x,go= .
+ t=/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782
+ rm -r /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/a 
/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/b
rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/a': Device busy
rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/b': Device busy
+ fail=1
+ rm -r /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/d 
/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/e
rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/d': Device busy
rm: cannot remove directory 
`/opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/e': Device busy
+ fail=1
+ test -d /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/a
+ fail=1
+ test -d /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/b
+ fail=1
+ test -d /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/d
+ fail=1
+ test -d /opt/build/coreutils-5.3.0/tests/rm/unread3.tmp/2782/e
+ fail=1
+ exit 1
+ exit 1
+ status=1
+ cd /opt/build/coreutils-5.3.0/tests/rm
+ chmod -R u+rwx unread3.tmp
+ rm -rf unread3.tmp
+ exit 1
FAIL: unread3
======================================
1 of 1 tests failed
Please report to address@hidden
======================================
gmake[1]: *** [check-TESTS] Error 1
gmake[1]: Leaving directory `/opt/build/coreutils-5.3.0/tests/rm'
gmake: *** [check-am] Error 2

-- 
albert chin (address@hidden)




reply via email to

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