]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: Skip system call filter tests when sanitizers are used
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 27 May 2024 11:33:51 +0000 (13:33 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 30 May 2024 10:47:45 +0000 (12:47 +0200)
System call filtering is incompatible with sanitizers so let's skip
these tests when we're built with sanitizers.

src/test/test-execute.c

index daddeb61d08b3dd17392f862cb9b0ff540107f5d..4b8daa46bb8c7142a030993c94129dbee8210399 100644 (file)
@@ -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()) {