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

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