bugfindutils - Bugs: bug #57762, Test fail of...

 
 

bug #57762: Test fail of find.posix/sv-bug-54171.exp

Submitter:  Yang <syyhao>
Submitted:  Fri 07 Feb 2020 08:10:11 AM UTC
   
 
Category:  find Severity:  2 - Minor
Item Group:  Test suite failure Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Open/Closed:  Closed
Release:  4.7.0 Fixed Release:  4.8.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 11 Feb 2020 07:32:46 AM UTC, comment #5: 



comment #3:

> Thanks for the review.  Pushed with the Redhat bug mentioned:
>
> https://git.sv.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1


Thank you for your excellent work!
The problem has been fixed now!

Yang <syyhao>
Tue 11 Feb 2020 07:29:30 AM UTC, comment #4: 

comment #3:

> Thanks for the review.  Pushed with the Redhat bug mentioned:
>
> https://git.sv.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1


original submission:

> Description of problem:
> When i use rpmbuild to build findutils of 4.7.0 as root, the test failed,
> FAIL: sv-bug-54171.old-O3,
> FAIL: sv-bug-54171.new-O3,
> If i change to non-root user, the building succeded.
>
> Version-Release number of selected component (if applicable):
> The version of findutils is 4.7.0
>
> Steps to Reproduce:
>  1.[root@localhost findutils]# rpmbuild -ba findutils.spec
>
> > >
> > > Actual results:
>
> Running ../../../find/testsuite/find.posix/sv-bug-54171.exp ...
> FAIL: sv-bug-54171.old-O3,
> FAIL: sv-bug-54171.new-O3,
>
>
>                 === find Summary ===
>
> # of expected passes            943
> # of unexpected failures        2
> # of untested testcases         2
> find (GNU findutils) 4.7.0
> make[3]: * [Makefile:1942: check-DEJAGNU] Error 1
> make[3]: Leaving directory
> '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite'
> make[2]: * [Makefile:2017: check-am] Error 2
> make[2]: Leaving directory
> '/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite'
> make[1]: * [Makefile:2008: check-recursive] Error 1
> make[1]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find'
> make: * [Makefile:2109: check-recursive] Error 1
> make: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build'
> error: Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check)

>
>  Expected results:
>  Building success.
>
>


comment #3:

> Thanks for the review.  Pushed with the Redhat bug mentioned:
>
> https://git.sv.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1


comment #3:

> Thanks for the review.  Pushed with the Redhat bug mentioned:
>
> https://git.sv.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1

Yang <syyhao>
Mon 10 Feb 2020 06:08:10 PM UTC, comment #3: 

Thanks for the review.  Pushed with the Redhat bug mentioned:

https://git.sv.gnu.org/cgit/findutils.git/commit/?id=2f9fff9e1

Bernhard Voelker <berny>
Group administrator
Mon 10 Feb 2020 01:08:24 PM UTC, comment #2: 

This was also reported in Red Hat Bugzilla: https://bugzilla.redhat.com/1799064

The proposed patch works for me: The test is now skipped when running with root privileges.

Thank you for taking care of it!

Kamil Dudka <kdudka>
Sun 09 Feb 2020 10:58:10 PM UTC, comment #1: 

Nice catch, thanks for the report.

While it would have been easier to add a 'fs_superuser' guard
around that test, I prefer to migrate that test to the shell-style
ones, because that allows a more fine-grained checks of the exit
code, the output at stdout and stderr.

Patch attached.

(file #48388)

Bernhard Voelker <berny>
Group administrator
Fri 07 Feb 2020 08:10:11 AM UTC, original submission:  

Description of problem:
When i use rpmbuild to build findutils of 4.7.0 as root, the test failed,
FAIL: sv-bug-54171.old-O3,
FAIL: sv-bug-54171.new-O3,
If i change to non-root user, the building succeded.

Version-Release number of selected component (if applicable):
The version of findutils is 4.7.0

Steps to Reproduce:
 1.[root@localhost findutils]# rpmbuild -ba findutils.spec

> >
> > Actual results:


Running ../../../find/testsuite/find.posix/sv-bug-54171.exp ...
FAIL: sv-bug-54171.old-O3,
FAIL: sv-bug-54171.new-O3,


                === find Summary ===

# of expected passes            943
# of unexpected failures        2
# of untested testcases         2
find (GNU findutils) 4.7.0
make[3]: * [Makefile:1942: check-DEJAGNU] Error 1
make[3]: Leaving directory
'/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite'
make[2]: * [Makefile:2017: check-am] Error 2
make[2]: Leaving directory
'/root/rpmbuild/BUILD/findutils-4.7.0/build/find/testsuite'
make[1]: * [Makefile:2008: check-recursive] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build/find'
make: * [Makefile:2109: check-recursive] Error 1
make: Leaving directory '/root/rpmbuild/BUILD/findutils-4.7.0/build'
error: Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.x9ibSi (%check)
 

 Expected results:
 Building success.


Yang <syyhao>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48388:  0001-tests-avoid-FP-when-run-as-root.patch added by berny (4KiB - text/x-patch - [PATCH] tests: avoid FP when run as root)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kdudka (Posted a comment)
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by syyhao (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-09 berny Open/ClosedOpen Closed
        Fixed ReleaseNone 4.8.0
    2020-02-10 berny StatusReady For Test Fixed
    2020-02-09 berny Severity3 - Normal 2 - Minor
        StatusNone Ready For Test
        Assigned toNone berny
    2020-02-09 berny Attached File- Added 0001-tests-avoid-FP-when-run-as-root.patch, #48388
        CategoryNone find

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code