URL:
  <http://savannah.gnu.org/bugs/?18414>

                 Summary: testsuite failures when run as root
                 Project: findutils
            Submitted by: ericb
            Submitted on: Wednesday 11/29/2006 at 14:35
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Eric Blake
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.2
           Fixed Release: None

    _______________________________________________________

Details:

The testsuite has a bug when run as root or other user with extra
privileges:

Running /home/eblake/findutils/find/testsuite/find.gnu/access.exp ...
FAIL: access.old-O0, --- find.out       2006-11-29 14:26:00.034470600 -0700
+++ cmp.out     2006-11-29 14:26:00.081345600 -0700
@@ -1,10 +1,7 @@
 r tmp
-r tmp/0
 r tmp/r
 r tmp/rw
 r tmp/rwx
-r tmp/w
-r tmp/x
 w tmp
 w tmp/rw
 w tmp/rwx
child process exited abnormally
...

I got the above failure by running the testsuite under cygwin under an
Administrator account, where access() correctly reports that all files are
readable regardless of the stat mode because of my extra privileges as an
Administrator.

The test should first check whether the user can read and/or write a file
that has been chmod'd to 000, and skip the test, rather than declaring a
failure, since access() is not necessarily based on stat() information.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?18414>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to