Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
949a2522
Commit
949a2522
authored
Jul 18, 2013
by
Mukund Sivaraman
Browse files
[3056] Skip DataSrcClientsBuilderTest.loadUnreadableZone test when run as the root user
parent
473c1e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/tests/datasrc_clients_builder_unittest.cc
View file @
949a2522
...
...
@@ -528,6 +528,13 @@ TEST_F(DataSrcClientsBuilderTest, loadBrokenZone) {
}
TEST_F
(
DataSrcClientsBuilderTest
,
loadUnreadableZone
)
{
// If the test is run as the root user, it will fail as insufficient
// permissions will not stop the root user from using a file.
if
(
getuid
()
==
0
)
{
std
::
cerr
<<
"Skipping test as it's run as the root user"
<<
std
::
endl
;
return
;
}
configureZones
();
// install the zone file as unreadable
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment