diff --git a/src/libsystemd/sd-bus/test-bus-marshal.c b/src/libsystemd/sd-bus/test-bus-marshal.c index ebf55e873cc..8c80b501248 100644 --- a/src/libsystemd/sd-bus/test-bus-marshal.c +++ b/src/libsystemd/sd-bus/test-bus-marshal.c @@ -217,6 +217,7 @@ int main(int argc, char *argv[]) { free(h); #if HAVE_GLIB +#ifndef __SANITIZE_ADDRESS__ { GDBusMessage *g; char *p; @@ -232,6 +233,7 @@ int main(int argc, char *argv[]) { g_object_unref(g); } #endif +#endif #if HAVE_DBUS { diff --git a/src/test/test-mount-util.c b/src/test/test-mount-util.c index c95baa81a71..5f2ad7c7194 100644 --- a/src/test/test-mount-util.c +++ b/src/test/test-mount-util.c @@ -80,12 +80,8 @@ static void test_mnt_id(void) { int mnt_id = PTR_TO_INT(k), mnt_id2; r = path_get_mnt_id(p, &mnt_id2); - if (r == -EOPNOTSUPP) { /* kernel or file system too old? */ - log_debug("%s doesn't support mount IDs\n", p); - continue; - } - if (IN_SET(r, -EACCES, -EPERM)) { - log_debug("Can't access %s\n", p); + if (r < 0) { + log_debug_errno(r, "Failed to get the mnt id of %s: %m\n", p); continue; } diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c index 0e5a9d811d7..1a0164e601f 100644 --- a/src/test/test-process-util.c +++ b/src/test/test-process-util.c @@ -193,6 +193,8 @@ static void test_get_process_cmdline_harder(void) { assert_se(pid == 0); assert_se(unshare(CLONE_NEWNS) >= 0); + assert_se(mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) >= 0); + fd = mkostemp(path, O_CLOEXEC); assert_se(fd >= 0);