Blame SOURCES/0012-tests-test-save.c-testSaveNoPermission-skip-when-roo.patch

3efdbb
From f0e1dfad1c8a7c8193f2805c0919d6105344dc17 Mon Sep 17 00:00:00 2001
3efdbb
From: Dominic Cleal <dcleal@redhat.com>
3efdbb
Date: Thu, 17 Dec 2015 10:40:45 +0000
3efdbb
Subject: [PATCH] * tests/test-save.c (testSaveNoPermission): skip when root
3efdbb
3efdbb
---
3efdbb
 tests/test-save.c | 5 +++++
3efdbb
 1 file changed, 5 insertions(+)
3efdbb
3efdbb
diff --git a/tests/test-save.c b/tests/test-save.c
3efdbb
index 4b6470f2..8775ba54 100644
3efdbb
--- a/tests/test-save.c
3efdbb
+++ b/tests/test-save.c
3efdbb
@@ -355,6 +355,11 @@ static void testPathEscaping(CuTest *tc) {
3efdbb
  * used to lead to a SEGV
3efdbb
  */
3efdbb
 static void testSaveNoPermission(CuTest *tc) {
3efdbb
+    if (getuid() == 0) {
3efdbb
+        puts("pending (testSaveNoPermission): can't test permissions under root account");
3efdbb
+        return;
3efdbb
+    }
3efdbb
+
3efdbb
     int r;
3efdbb
     char *path = NULL;
3efdbb
     const char *v;
3efdbb
-- 
01dba9
2.17.2
3efdbb