You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
778 B

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