]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-daemon: use new assertion macros
authorAnouk Ceyssens <anouk.ceyssens@outlook.com>
Mon, 22 Jul 2024 21:27:52 +0000 (23:27 +0200)
committerAnouk Ceyssens <anouk.ceyssens@outlook.com>
Mon, 22 Jul 2024 21:27:52 +0000 (23:27 +0200)
src/test/test-daemon.c

index b880521025e7b543a149ad1beed29d8a440be398..5d6c52374cf5c227f4a6187c47670c8aede0eb29 100644 (file)
@@ -19,7 +19,7 @@ int main(int argc, char *argv[]) {
         if (argc >= 2) {
                 unsigned x;
 
-                assert_se(safe_atou(argv[1], &x) >= 0);
+                ASSERT_OK(safe_atou(argv[1], &x));
                 duration = x * USEC_PER_SEC;
         }