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

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