[CRIU] [PATCH] zdtm: return positive value from clonned process

Kinsbursky Stanislav skinsbursky at openvz.org
Fri Feb 10 02:50:10 EST 2012



Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>

---
 test/zdtm/lib/test.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/test/zdtm/lib/test.c b/test/zdtm/lib/test.c
index 4490f02..2e39994 100644
--- a/test/zdtm/lib/test.c
+++ b/test/zdtm/lib/test.c
@@ -190,7 +190,8 @@ static int do_test_fn(void *_arg)
 
 	srand48(time(NULL));	/* just in case we need it */
 
-	ca->fn();
+	if (ca->fn())
+		exit(1);
 	exit(0);
 }
 



More information about the CRIU mailing list