Commit 19499856 authored by Glenn Scott's avatar Glenn Scott

Merge pull request #6 from quevedo/master

Fix test_metis_ConfigurationFile failure as root
parents c229d0a2 c739c077
......@@ -130,7 +130,12 @@ LONGBOW_TEST_CASE(Create, metisConfigurationFile_Create_CantRead)
chmod(template, 0600);
unlink(template);
assertNull(cf, "Should have returned null configuration file for non-readable file");
uid_t uid = getuid(), euid = geteuid();
if (uid <= 0 || uid != euid) {
metisConfigurationFile_Release(&cf);
} else {
assertNull(cf, "Should have returned null configuration file for non-readable file");
}
metisForwarder_Destroy(&metis);
close(fd);
......
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