mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
test-execute: skip test_exec_systemcallfilter_system under ASan
This particular test case keeps intermittently failing due to crashing LSan when running under clang+ASan. Generally, sanitizers don't like seccomp filters, so the best option here is to just switch this test off for this scenario.
This commit is contained in:
committed by
Yu Watanabe
parent
417b82e1c3
commit
4967da2dbc
@@ -471,7 +471,12 @@ static void test_exec_restrictnamespaces(Manager *m) {
|
||||
}
|
||||
|
||||
static void test_exec_systemcallfilter_system(Manager *m) {
|
||||
#if HAVE_SECCOMP
|
||||
/* Skip this particular test case when running under ASan, as
|
||||
* LSan intermittently segfaults when accessing memory right
|
||||
* after the test finishes. Generally, ASan & LSan don't like
|
||||
* the seccomp stuff.
|
||||
*/
|
||||
#if HAVE_SECCOMP && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
if (!is_seccomp_available()) {
|
||||
log_notice("Seccomp not available, skipping %s", __func__);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user