[PATCH 1/3] zdtm: Make pthread00 to use exit(0)

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 23 03:25:14 EST 2012


No need for error code here, we test results
by special bitmap.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/live/static/pthread00.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/zdtm/live/static/pthread00.c b/test/zdtm/live/static/pthread00.c
index 7b7c060..21c92af 100644
--- a/test/zdtm/live/static/pthread00.c
+++ b/test/zdtm/live/static/pthread00.c
@@ -64,12 +64,12 @@ static void *ff1(void *map)
 			if (ret) {
 				if (IS_STARTED(map, 4)) {
 					SET_FAILED(map, 4);
-					exit(4);
+					exit(0);
 				}
 			} else {
 				if (IS_STARTED(map, 4)) {
 					SET_PASSED(map, 4);
-					exit(4);
+					exit(0);
 				}
 			}
 			sleep(1);
@@ -127,12 +127,12 @@ static void *f1(void *map)
 			if (ret) {
 				if (IS_STARTED(map, 2)) {
 					SET_FAILED(map, 2);
-					exit(2);
+					exit(0);
 				}
 			} else {
 				if (IS_STARTED(map, 2)) {
 					SET_PASSED(map, 2);
-					exit(2);
+					exit(0);
 				}
 			}
 			sleep(1);
-- 
1.7.7.6


--UPT3ojh+0CqEDtpF--


More information about the CRIU mailing list