Bug 650594 - libcap-ng self-test fails
Summary: libcap-ng self-test fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libcap-ng
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Steve Grubb
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-07 09:51 UTC by Ondrej Moriš
Modified: 2010-11-08 13:09 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-08 08:32:36 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ondrej Moriš 2010-11-07 09:51:06 UTC
Description of problem:

Component libcap-ng contains self-test, but its execution fails on RHEL6.

Version-Release number of selected component (if applicable):

* libcap-ng-0.6.4-3.el6
* libcap-ng-0.6.4-3.el6_0.1

How reproducible:

Always.

Steps to Reproduce:

1. rpmbuild -vv -bc ~/rpmbuild/SPECS/libcap-ng.spec
2. make -C ~/rpmbuild/BUILD/libcap-ng-0.6.4 check
  
Actual results:

make: Entering directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4'
Making check in src
make[1]: Entering directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src'
Making check in test
make[2]: Entering directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
make  lib_test thread_test
make[3]: Entering directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
make[3]: `lib_test' is up to date.
make[3]: `thread_test' is up to date.
make[3]: Leaving directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
make  check-TESTS
make[3]: Entering directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
Doing basic bit tests...
Doing advanced bit tests for 33 capabilities...
PASS: lib_test
Testing thread separation of capabilities
Detected capabilities when they should not be any
FAIL: thread_test
===================
1 of 2 tests failed
===================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src/test'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4/src'
make: *** [check-recursive] Error 1
make: Leaving directory `/root/rpmbuild/BUILD/libcap-ng-0.6.4'

Expected results:

All test passed.

Comment 1 Steve Grubb 2010-11-08 01:07:10 UTC
Was that test run as root by any chance? The code is designed to run as non-root.

Comment 2 Ondrej Moriš 2010-11-08 08:32:36 UTC
Ah.. you're right, I was running self-test by root and when using non-root account it passes. Great, hence I will close this bug as NOTABUG. Unfortunately, there is no information about using non-root account to run self-test in README or INSTALL even though it might be interesting (why?).

Comment 3 Steve Grubb 2010-11-08 13:09:35 UTC
I'll make some changes upstream to either skip the test if root or run a different test if root.


Note You need to log in before you can comment on or make changes to this bug.