From 8e600181763c7694128fa187fdcc8c4561ac474d Mon Sep 17 00:00:00 2001 From: djcb Date: Thu, 8 Nov 2012 22:31:51 +0200 Subject: [PATCH] * fix test-mu-maildir unit test for running as root --- lib/tests/test-mu-maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/test-mu-maildir.c b/lib/tests/test-mu-maildir.c index 59c72f0d..f4809229 100644 --- a/lib/tests/test-mu-maildir.c +++ b/lib/tests/test-mu-maildir.c @@ -164,7 +164,7 @@ test_mu_maildir_mkdir_04 (void) /* this should fail now, because cur is not read/writable */ g_assert_cmpuint (mu_maildir_mkdir (mdir, 0755, FALSE, NULL), - ==, FALSE); + ==, (geteuid()==0 ? TRUE : FALSE)); g_free (tmpdir); g_free (mdir); }