From b5f24a38587808674dbaab4bfaac22b3eea12a86 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 9 Oct 2018 22:53:13 +0900 Subject: [PATCH] test: make test-sd-device stricter --- src/libsystemd/sd-device/test-sd-device.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libsystemd/sd-device/test-sd-device.c b/src/libsystemd/sd-device/test-sd-device.c index 6f4f2e1c6fd..e2701e0e242 100644 --- a/src/libsystemd/sd-device/test-sd-device.c +++ b/src/libsystemd/sd-device/test-sd-device.c @@ -113,13 +113,7 @@ static void test_sd_device_enumerator_filter_subsystem(void) { assert_se(hashmap_put(subsystems, str, h) >= 0); } - r = hashmap_put(h, syspath, d); - assert_se(r >= 0 || r == -EEXIST); - if (r < 0) { - log_info("Duplicated subsystem:%s syspath:%s", subsystem, syspath); - continue; - } - + assert_se(hashmap_put(h, syspath, d) >= 0); assert_se(sd_device_ref(d)); log_debug("Added subsystem:%s syspath:%s", subsystem, syspath);