diff --git a/src/libsystemd-bus/test-bus-kernel.c b/src/libsystemd-bus/test-bus-kernel.c index 14029ff561..e84e45ad2b 100644 --- a/src/libsystemd-bus/test-bus-kernel.c +++ b/src/libsystemd-bus/test-bus-kernel.c @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) { assert_se(r >= 0); r = sd_bus_release_name(a, "net.0pointer.foobar"); - assert_se(r >= 0); + assert_se(r == -ENXIO); sd_bus_unref(a); sd_bus_unref(b);