bugfindutils - Bugs: bug #18414, testsuite failures when run as root

 
 

bug #18414: testsuite failures when run as root

Submitted by:  Eric Blake <ericb>
Submitted on:  Wed 29 Nov 2006 09:35:46 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Eric BlakeOpen/Closed: Closed
Release: 4.3.2Fixed Release: 4.3.8

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 21 Jun 2007 05:13:55 PM UTC, comment #3:

At least 4.3.8 makes it through the testsuite with no failures on cygwin, so I'm closing this.

Eric Blake <ericb>
Project Administrator
Sun 22 Apr 2007 11:12:38 AM UTC, comment #2:

Drat, I think it was just a typo. Please try the attached patch.

(file #12564)

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 21 Apr 2007 11:01:57 PM UTC, comment #1:

Reopening; the fix in 4.3.4 isn't complete. My dejagnu fu is very weak, so I don't know how to go about fixing this, but in an effort to skip the test, the testsuite crashes instead.

Running /home/eblake/findutils-4.3.4-1/src/findutils-4.3.4/find/testsuite/find.gnu/access.exp ...
WARNING: You have superuser privileges, skipping this test.
ERROR: (DejaGnu) proc "3 untested {skipping this test because you have superuser privileges}" does not exist.
The error code is NONE

=== find Summary ===

Eric Blake <ericb>
Project Administrator
Wed 29 Nov 2006 09:35:46 PM UTC, original submission:

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.

Eric Blake <ericb>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #12564:  sv-18414.patch added by jay (848B - text/patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Updated the item)
  • -unavailable- added by ericb (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Jun 2007 05:13:55 PM UTCericbStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.8
    Sun 22 Apr 2007 11:12:38 AM UTCjayAttached File-=>Added sv-18414.patch, #12564
      StatusIn Progress=>Need Info
    Sat 21 Apr 2007 11:01:57 PM UTCericbOpen/ClosedClosed=>Open
      Fixed Release4.3.4=>None
    Sat 21 Apr 2007 11:01:56 PM UTCericbStatusFixed=>In Progress
    Sat 21 Apr 2007 01:51:16 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.4
    Thu 19 Apr 2007 09:37:09 AM UTCjayStatusNone=>Fixed
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1