BIND 10 #1098: AuthCommandTest.loadUnreadableZone succeeds when run as root
BIND 10 Development
do-not-reply at isc.org
Wed Jul 6 21:44:46 UTC 2011
#1098: AuthCommandTest.loadUnreadableZone succeeds when run as root
---------------------------------+-----------------------------------------
Reporter: shane | Owner:
Type: defect | Status: new
Priority: minor | Milestone: New Tasks
Component: b10-auth | Keywords:
Sensitive: 0 | Defect Severity: Low
Sub-Project: DNS | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
---------------------------------+-----------------------------------------
I had the following test fail:
{{{
[ RUN ] AuthCommandTest.loadUnreadableZone
command_unittest.cc:58: Failure
Value of: rcode
Actual: 0
Expected: expected_code
Which is: 1
[ FAILED ] AuthCommandTest.loadUnreadableZone (25 ms)
}}}
This happens if the tests run as root, because the test creates a file
with 000 permissions, which root can read anyway.
Jinmei suggests just giving a non-existent file may be a better way that
doesn't depend on any particular permissions.
--
Ticket URL: <http://bind10.isc.org/ticket/1098>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list