Commit cf581713 authored by LRN's avatar LRN

fileutils test - use UIDs only on *nix

As usual, only call getuid() or geteuid() if G_OS_UNIX is defined.
parent 5c8b80c1
Pipeline #9394 passed with stage
in 2 minutes and 25 seconds
......@@ -881,11 +881,13 @@ test_stdio_wrappers (void)
GError *error = NULL;
/* The permissions tests here don’t work when running as root. */
#ifdef G_OS_UNIX
if (getuid () == 0 || geteuid () == 0)
{
g_test_skip ("File permissions tests cannot be run as root");
return;
}
#endif
g_remove ("mkdir-test/test-create");
ret = g_rmdir ("mkdir-test");
......
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