]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (test_mkfds) use err() when a system call fails
authorMasatake YAMATO <yamato@redhat.com>
Fri, 28 Jul 2023 16:21:00 +0000 (01:21 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 11 Sep 2023 11:09:10 +0000 (20:09 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c

index 8118b0f900436e033c8098de5841771dd03d073d..ccb2a0158aafae500f16badafa0bf18008e4256f 100644 (file)
@@ -3750,7 +3750,7 @@ static void wait_event(bool monitor_stdin)
 
        if (pselect(n, &readfds, NULL, NULL, NULL, &sigset) < 0
            && errno != EINTR)
-               errx(EXIT_FAILURE, "failed in pselect");
+               err(EXIT_FAILURE, "failed in pselect");
 }
 
 int main(int argc, char **argv)