]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop unnecessary '>= 0' in ASSERT_OK()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Apr 2025 04:23:47 +0000 (13:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Apr 2025 07:31:22 +0000 (16:31 +0900)
Follow-up for 2351bc991e3a4f1fbdaa2d53900980b6703babbd.
Fixes CID#1596075.

src/test/test-notify-recv.c

index 24690b40a421a35e1a6cd909c06a85c5cc6581f6..be236a3b9f55e20c710380ee4bad54df915a0e0e 100644 (file)
@@ -72,7 +72,7 @@ TEST(notify_socket_prepare) {
                 .pidref = PIDREF_NULL,
         };
         _cleanup_free_ char *path = NULL;
-        ASSERT_OK(notify_socket_prepare(e, SD_EVENT_PRIORITY_NORMAL - 10, on_recv, &c, &path) >= 0);
+        ASSERT_OK(notify_socket_prepare(e, SD_EVENT_PRIORITY_NORMAL - 10, on_recv, &c, &path));
 
         ASSERT_OK(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD));