From: anton Date: Fri, 27 Oct 2023 07:33:06 +0000 (+0000) Subject: Include wait(2) status in error message, in the hopes of providing clues X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=613dad15c26d9145b3b95b6c377f9d360b630aa0;p=openbsd Include wait(2) status in error message, in the hopes of providing clues on why this occasionally fails. --- diff --git a/regress/lib/libc/sys/t_sendmmsg.c b/regress/lib/libc/sys/t_sendmmsg.c index 44e6c001f61..46a2e9bf5c0 100644 --- a/regress/lib/libc/sys/t_sendmmsg.c +++ b/regress/lib/libc/sys/t_sendmmsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: t_sendmmsg.c,v 1.2 2022/09/11 20:51:44 mbuhl Exp $ */ +/* $OpenBSD: t_sendmmsg.c,v 1.3 2023/10/27 07:33:06 anton Exp $ */ /* $NetBSD: t_sendmmsg.c,v 1.3 2019/03/16 21:46:43 christos Exp $ */ /*- @@ -202,7 +202,7 @@ ATF_TC_BODY(sendmmsg_basic, tc) ATF_REQUIRE_MSG(error != -1, "wait failed (%s)", strerror(errno)); ATF_REQUIRE_MSG(WIFEXITED(status) && WEXITSTATUS(status) == 0, - "receiver died"); + "receiver died, status %d", status); break; } }