summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/test-conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/p11-kit/test-conf.c b/p11-kit/test-conf.c
index 94b8b01..a140aaa 100644
--- a/p11-kit/test-conf.c
+++ b/p11-kit/test-conf.c
@@ -447,8 +447,9 @@ main (int argc,
p11_test (test_load_modules_user_none, "/conf/test_load_modules_user_none");
p11_test (test_parse_boolean, "/conf/test_parse_boolean");
#ifdef OS_UNIX
- /* Don't run this test when under fakeroot */
- if (!getenv ("FAKED_MODE")) {
+ /* Don't run this test when under fakeroot, or the binary is
+ * written under /tmp */
+ if (!getenv ("FAKED_MODE") && strncmp (BUILDDIR, "/tmp/", 5) != 0) {
p11_test (test_setuid, "/conf/setuid");
}
#endif