Module Name: src
Committed By: pooka
Date: Thu Jan 6 06:59:25 UTC 2011
Modified Files:
src/tests/rump/rumpkern/h_client: h_stresscli.c
Log Message:
check that child exits with an expected status
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/rump/rumpkern/h_client/h_stresscli.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/rump/rumpkern/h_client/h_stresscli.c
diff -u src/tests/rump/rumpkern/h_client/h_stresscli.c:1.1 src/tests/rump/rumpkern/h_client/h_stresscli.c:1.2
--- src/tests/rump/rumpkern/h_client/h_stresscli.c:1.1 Tue Nov 30 22:09:15 2010
+++ src/tests/rump/rumpkern/h_client/h_stresscli.c Thu Jan 6 06:59:25 2011
@@ -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++)