Commit 949a2522 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3056] Skip DataSrcClientsBuilderTest.loadUnreadableZone test when run as the root user

parent 473c1e67
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment