We use the FAKED_MODE environment variable as a way to detect
fakeroot.
{
p11_test (test_strndup, "/compat/strndup");
#ifdef OS_UNIX
- p11_test (test_getauxval, "/compat/getauxval");
+ /* Don't run this test when under fakeroot */
+ if (!getenv ("FAKED_MODE")) {
+ p11_test (test_getauxval, "/compat/getauxval");
+ }
#endif
return p11_test_run (argc, argv);
}
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
- p11_test (test_setuid, "/conf/setuid");
+ /* Don't run this test when under fakeroot */
+ if (!getenv ("FAKED_MODE")) {
+ p11_test (test_setuid, "/conf/setuid");
+ }
#endif
return p11_test_run (argc, argv);
}