Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/rump/rumpkern/h_client check that child exits with an ...
details: https://anonhg.NetBSD.org/src/rev/a6d00c37bfcd
branches: trunk
changeset: 760495:a6d00c37bfcd
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 06 06:59:25 2011 +0000
description:
check that child exits with an expected status
diffstat:
tests/rump/rumpkern/h_client/h_stresscli.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 9005e557e677 -r a6d00c37bfcd tests/rump/rumpkern/h_client/h_stresscli.c
--- a/tests/rump/rumpkern/h_client/h_stresscli.c Thu Jan 06 06:57:14 2011 +0000
+++ b/tests/rump/rumpkern/h_client/h_stresscli.c Thu Jan 06 06:59:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_stresscli.c,v 1.1 2010/11/30 22:09:15 pooka Exp $ */
+/* $NetBSD: h_stresscli.c,v 1.2 2011/01/06 06:59:25 pooka Exp $ */
#include <sys/types.h>
#include <sys/atomic.h>
@@ -118,6 +118,8 @@
errx(1, "wanted pid %d, got %d\n", clis[i], apid);
clis[i] = 0;
ncli--;
+ if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
+ exit(1);
}
for (i = 0; i < NCLI; i++)
Home |
Main Index |
Thread Index |
Old Index