* fix test-mu-maildir unit test for running as root
This commit is contained in:
@ -164,7 +164,7 @@ test_mu_maildir_mkdir_04 (void)
|
|||||||
|
|
||||||
/* this should fail now, because cur is not read/writable */
|
/* this should fail now, because cur is not read/writable */
|
||||||
g_assert_cmpuint (mu_maildir_mkdir (mdir, 0755, FALSE, NULL),
|
g_assert_cmpuint (mu_maildir_mkdir (mdir, 0755, FALSE, NULL),
|
||||||
==, FALSE);
|
==, (geteuid()==0 ? TRUE : FALSE));
|
||||||
g_free (tmpdir);
|
g_free (tmpdir);
|
||||||
g_free (mdir);
|
g_free (mdir);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user