From 51e26d236680ff58bdb489bdcdab6e67d0e53510 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 27 May 2024 13:33:51 +0200 Subject: [PATCH] test-execute: Skip system call filter tests when sanitizers are used System call filtering is incompatible with sanitizers so let's skip these tests when we're built with sanitizers. --- src/test/test-execute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test-execute.c b/src/test/test-execute.c index daddeb61d08..4b8daa46bb8 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -824,7 +824,7 @@ static void test_exec_temporaryfilesystem(Manager *m) { } static void test_exec_systemcallfilter(Manager *m) { -#if HAVE_SECCOMP +#if HAVE_SECCOMP && !HAS_FEATURE_ADDRESS_SANITIZER int r; if (!is_seccomp_available()) { @@ -867,7 +867,7 @@ static void test_exec_systemcallfilter(Manager *m) { } static void test_exec_systemcallerrornumber(Manager *m) { -#if HAVE_SECCOMP +#if HAVE_SECCOMP && !HAS_FEATURE_ADDRESS_SANITIZER int r; if (!is_seccomp_available()) { -- 2.47.3