From beb377f7479e834366be60dc6c1da2e53278e091 Mon Sep 17 00:00:00 2001 From: Andreas Metzler Date: Tue, 1 Oct 2013 07:22:29 +0200 Subject: Disable tests with setgid binaries when running in fakeroot We use the FAKED_MODE environment variable as a way to detect fakeroot. --- common/tests/test-compat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/tests') diff --git a/common/tests/test-compat.c b/common/tests/test-compat.c index c73c034..872170d 100644 --- a/common/tests/test-compat.c +++ b/common/tests/test-compat.c @@ -91,7 +91,10 @@ main (int argc, { 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); } -- cgit v1.1