naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
Blob Blame History Raw
From c6b52050b8da6f5e7cdd2f057141af236288e78b Mon Sep 17 00:00:00 2001
From: Jan Macku <jamacku@redhat.com>
Date: Mon, 31 Oct 2022 10:58:11 +0100
Subject: [PATCH] test-sd-device: skip "misc" devices

rhel-only

Related: #2138081
---
 src/libsystemd/sd-device/test-sd-device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libsystemd/sd-device/test-sd-device.c b/src/libsystemd/sd-device/test-sd-device.c
index 4ab8b3894a..a1bcf18059 100644
--- a/src/libsystemd/sd-device/test-sd-device.c
+++ b/src/libsystemd/sd-device/test-sd-device.c
@@ -204,6 +204,7 @@ TEST(sd_device_enumerator_devices) {
         /* On CentOS CI, systemd-networkd-tests.py may be running when this test is invoked. The networkd
          * test creates and removes many network interfaces, and may interfere with this test. */
         assert_se(sd_device_enumerator_add_match_subsystem(e, "net", false) >= 0);
+        assert_se(sd_device_enumerator_add_match_subsystem(e, "misc", false) >= 0);
         FOREACH_DEVICE(e, d)
                 test_sd_device_one(d);
 }