Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
diff --git a/testcases/kernel/syscalls/access/access01.c b/testcases/kernel/syscalls/access/access01.c
index 94b3b10..b9398de 100644
--- a/testcases/kernel/syscalls/access/access01.c
+++ b/testcases/kernel/syscalls/access/access01.c
@@ -269,4 +269,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/access/access02.c b/testcases/kernel/syscalls/access/access02.c
index 82b75d3..7f5d55f 100644
--- a/testcases/kernel/syscalls/access/access02.c
+++ b/testcases/kernel/syscalls/access/access02.c
@@ -388,4 +388,4 @@
 	 */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/access/access03.c b/testcases/kernel/syscalls/access/access03.c
index 2049f52..4024049 100644
--- a/testcases/kernel/syscalls/access/access03.c
+++ b/testcases/kernel/syscalls/access/access03.c
@@ -207,4 +207,4 @@
 	tst_brkm(TCONF, NULL, "test not available on UCLINUX");
 }
 
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/access/access04.c b/testcases/kernel/syscalls/access/access04.c
index f0b792b..6eeb53d 100644
--- a/testcases/kernel/syscalls/access/access04.c
+++ b/testcases/kernel/syscalls/access/access04.c
@@ -183,4 +183,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/access/access05.c b/testcases/kernel/syscalls/access/access05.c
index b894648..b41a95a 100644
--- a/testcases/kernel/syscalls/access/access05.c
+++ b/testcases/kernel/syscalls/access/access05.c
@@ -332,4 +332,4 @@
 	 */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/add_key/add_key01.c b/testcases/kernel/syscalls/add_key/add_key01.c
index 3e65842..352845f 100644
--- a/testcases/kernel/syscalls/add_key/add_key01.c
+++ b/testcases/kernel/syscalls/add_key/add_key01.c
@@ -119,4 +119,4 @@
 	cleanup();
 	tst_exit();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/add_key/add_key02.c b/testcases/kernel/syscalls/add_key/add_key02.c
index 8758d73..8c0fa13 100644
--- a/testcases/kernel/syscalls/add_key/add_key02.c
+++ b/testcases/kernel/syscalls/add_key/add_key02.c
@@ -167,4 +167,4 @@
 
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
index 5028f1e..0534105 100644
--- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
+++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
@@ -148,4 +148,4 @@
 	 * print errno log if that option was specified.
 	 */
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm01.c b/testcases/kernel/syscalls/alarm/alarm01.c
index dad6024..1bf7999 100644
--- a/testcases/kernel/syscalls/alarm/alarm01.c
+++ b/testcases/kernel/syscalls/alarm/alarm01.c
@@ -186,4 +186,4 @@
 void trapper(int sig)
 {
 	signal(SIGALRM, trapper);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm02.c b/testcases/kernel/syscalls/alarm/alarm02.c
index d605a14..306462b 100644
--- a/testcases/kernel/syscalls/alarm/alarm02.c
+++ b/testcases/kernel/syscalls/alarm/alarm02.c
@@ -182,4 +182,4 @@
 void alarm_received()
 {
 	received_alarm = 1;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm03.c b/testcases/kernel/syscalls/alarm/alarm03.c
index 6256677..b18207a 100644
--- a/testcases/kernel/syscalls/alarm/alarm03.c
+++ b/testcases/kernel/syscalls/alarm/alarm03.c
@@ -199,4 +199,4 @@
 void trapper(int sig)
 {
 	signal(SIGALRM, trapper);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm05.c b/testcases/kernel/syscalls/alarm/alarm05.c
index 7341472..4650808 100644
--- a/testcases/kernel/syscalls/alarm/alarm05.c
+++ b/testcases/kernel/syscalls/alarm/alarm05.c
@@ -104,7 +104,7 @@
 
 		Tst_count = 0;
 
-		/* 
+		/*
 		 * Reset alarms_received for every iteration, since it has
 		 * old values from previous iterations (if any) and not
 		 * a value of zero
@@ -211,4 +211,4 @@
 	 * print errno log if that option was specified.
 	 */
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm06.c b/testcases/kernel/syscalls/alarm/alarm06.c
index 6820b50..68c69b4 100644
--- a/testcases/kernel/syscalls/alarm/alarm06.c
+++ b/testcases/kernel/syscalls/alarm/alarm06.c
@@ -78,7 +78,7 @@
 int TST_TOTAL = 1;
 int alarms_received = 0;
 
-void setup();		
+void setup();
 void cleanup();
 void sigproc(int sig);
 
@@ -161,4 +161,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/alarm/alarm07.c b/testcases/kernel/syscalls/alarm/alarm07.c
index cd1a325..2c0c943 100644
--- a/testcases/kernel/syscalls/alarm/alarm07.c
+++ b/testcases/kernel/syscalls/alarm/alarm07.c
@@ -181,4 +181,4 @@
 	 * print errno log if that option was specified.
 	 */
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/asyncio/asyncio02.c b/testcases/kernel/syscalls/asyncio/asyncio02.c
index 3ddf85a..a56128c 100644
--- a/testcases/kernel/syscalls/asyncio/asyncio02.c
+++ b/testcases/kernel/syscalls/asyncio/asyncio02.c
@@ -311,4 +311,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/bdflush/bdflush01.c b/testcases/kernel/syscalls/bdflush/bdflush01.c
index ae2b55d..4856cc9 100644
--- a/testcases/kernel/syscalls/bdflush/bdflush01.c
+++ b/testcases/kernel/syscalls/bdflush/bdflush01.c
@@ -110,7 +110,7 @@
 
 	setup();
 
-	/* 
+	/*
 	 * TODO (garrcoop): add more functional testcases; there are a ton
 	 * missing.
 	 */
@@ -125,4 +125,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/brk/brk01.c b/testcases/kernel/syscalls/brk/brk01.c
index 3afff50..158d8a7 100644
--- a/testcases/kernel/syscalls/brk/brk01.c
+++ b/testcases/kernel/syscalls/brk/brk01.c
@@ -301,4 +301,4 @@
 	tst_brkm(TCONF, NULL, "test is not available on uClinux");
 }
 
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/capget/capget01.c b/testcases/kernel/syscalls/capget/capget01.c
index ea8411e..63234b4 100644
--- a/testcases/kernel/syscalls/capget/capget01.c
+++ b/testcases/kernel/syscalls/capget/capget01.c
@@ -127,4 +127,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/capget/capget02.c b/testcases/kernel/syscalls/capget/capget02.c
index f6b1099..60a3752 100644
--- a/testcases/kernel/syscalls/capget/capget02.c
+++ b/testcases/kernel/syscalls/capget/capget02.c
@@ -205,4 +205,4 @@
 		header.pid = INVALID_PID;
 		break;
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/capset/capset01.c b/testcases/kernel/syscalls/capset/capset01.c
index 008eac9..cfa2469 100644
--- a/testcases/kernel/syscalls/capset/capset01.c
+++ b/testcases/kernel/syscalls/capset/capset01.c
@@ -147,4 +147,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/capset/capset02.c b/testcases/kernel/syscalls/capset/capset02.c
index 341e9ce..8f75cd5 100644
--- a/testcases/kernel/syscalls/capset/capset02.c
+++ b/testcases/kernel/syscalls/capset/capset02.c
@@ -266,4 +266,4 @@
 		break;
 
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chdir/chdir01.c b/testcases/kernel/syscalls/chdir/chdir01.c
index aa9858b..1260e1c 100644
--- a/testcases/kernel/syscalls/chdir/chdir01.c
+++ b/testcases/kernel/syscalls/chdir/chdir01.c
@@ -190,4 +190,4 @@
 		tst_brkm(TFAIL, cleanup,
 			 "Some files do not exist, but they must exist");
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chdir/chdir02.c b/testcases/kernel/syscalls/chdir/chdir02.c
index 3b34c91..efe6f2f 100644
--- a/testcases/kernel/syscalls/chdir/chdir02.c
+++ b/testcases/kernel/syscalls/chdir/chdir02.c
@@ -172,4 +172,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chdir/chdir03.c b/testcases/kernel/syscalls/chdir/chdir03.c
index f7983cf..03190be 100644
--- a/testcases/kernel/syscalls/chdir/chdir03.c
+++ b/testcases/kernel/syscalls/chdir/chdir03.c
@@ -194,4 +194,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chdir/chdir04.c b/testcases/kernel/syscalls/chdir/chdir04.c
index 2f795b7..4097d79 100644
--- a/testcases/kernel/syscalls/chdir/chdir04.c
+++ b/testcases/kernel/syscalls/chdir/chdir04.c
@@ -168,4 +168,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/change_owner.c b/testcases/kernel/syscalls/chmod/change_owner.c
index 3abc067..e299855 100644
--- a/testcases/kernel/syscalls/chmod/change_owner.c
+++ b/testcases/kernel/syscalls/chmod/change_owner.c
@@ -93,4 +93,4 @@
 	}
 
 	exit(0);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod01.c b/testcases/kernel/syscalls/chmod/chmod01.c
index 6c18593..1c6af54 100644
--- a/testcases/kernel/syscalls/chmod/chmod01.c
+++ b/testcases/kernel/syscalls/chmod/chmod01.c
@@ -92,10 +92,10 @@
 int main(int ac, char **av)
 {
 	struct stat stat_buf;
-	int lc;		     
+	int lc;
 	char *msg;
 	int i;
-	int mode;	     
+	int mode;
 
 	TST_TOTAL = sizeof(modes) / sizeof(int);
 
@@ -170,4 +170,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod02.c b/testcases/kernel/syscalls/chmod/chmod02.c
index 17aa31b..9a6f825 100644
--- a/testcases/kernel/syscalls/chmod/chmod02.c
+++ b/testcases/kernel/syscalls/chmod/chmod02.c
@@ -206,4 +206,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod03.c b/testcases/kernel/syscalls/chmod/chmod03.c
index 1edb2fc..38887d0 100644
--- a/testcases/kernel/syscalls/chmod/chmod03.c
+++ b/testcases/kernel/syscalls/chmod/chmod03.c
@@ -195,4 +195,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod04.c b/testcases/kernel/syscalls/chmod/chmod04.c
index 392e6cb..d1de7c4 100644
--- a/testcases/kernel/syscalls/chmod/chmod04.c
+++ b/testcases/kernel/syscalls/chmod/chmod04.c
@@ -203,4 +203,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod05.c b/testcases/kernel/syscalls/chmod/chmod05.c
index 923d302..a51e9d1 100644
--- a/testcases/kernel/syscalls/chmod/chmod05.c
+++ b/testcases/kernel/syscalls/chmod/chmod05.c
@@ -242,4 +242,4 @@
 		tst_resm(TWARN|TERRNO, "seteuid(0) failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod06.c b/testcases/kernel/syscalls/chmod/chmod06.c
index 80af75a..79d8f14 100644
--- a/testcases/kernel/syscalls/chmod/chmod06.c
+++ b/testcases/kernel/syscalls/chmod/chmod06.c
@@ -350,4 +350,4 @@
 		tst_resm(TBROK|TERRNO, "chmod(%s) failed", DIR_TEMP);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chmod/chmod07.c b/testcases/kernel/syscalls/chmod/chmod07.c
index 63c285b..7407a1d 100644
--- a/testcases/kernel/syscalls/chmod/chmod07.c
+++ b/testcases/kernel/syscalls/chmod/chmod07.c
@@ -133,7 +133,7 @@
 			 * Get the testfile information using
 			 * stat(2).
 			 */
-			if (stat(TESTFILE, &stat_buf) == -1) 
+			if (stat(TESTFILE, &stat_buf) == -1)
 				tst_brkm(TFAIL|TTERRNO, cleanup, "stat failed");
 
 			/* Check for expected mode permissions */
@@ -207,4 +207,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/change_owner.c b/testcases/kernel/syscalls/chown/change_owner.c
index 9675174..98a08c9 100644
--- a/testcases/kernel/syscalls/chown/change_owner.c
+++ b/testcases/kernel/syscalls/chown/change_owner.c
@@ -86,4 +86,4 @@
 	}
 
 	exit(0);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/chown01.c b/testcases/kernel/syscalls/chown/chown01.c
index 4201fd4..f75841a 100644
--- a/testcases/kernel/syscalls/chown/chown01.c
+++ b/testcases/kernel/syscalls/chown/chown01.c
@@ -192,4 +192,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/chown02.c b/testcases/kernel/syscalls/chown/chown02.c
index 29d8f16..1ab55ba 100644
--- a/testcases/kernel/syscalls/chown/chown02.c
+++ b/testcases/kernel/syscalls/chown/chown02.c
@@ -293,4 +293,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/chown03.c b/testcases/kernel/syscalls/chown/chown03.c
index 79750fd..34b2d59 100644
--- a/testcases/kernel/syscalls/chown/chown03.c
+++ b/testcases/kernel/syscalls/chown/chown03.c
@@ -213,4 +213,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/chown04.c b/testcases/kernel/syscalls/chown/chown04.c
index f69d822..1c7cf75 100644
--- a/testcases/kernel/syscalls/chown/chown04.c
+++ b/testcases/kernel/syscalls/chown/chown04.c
@@ -291,4 +291,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chown/chown05.c b/testcases/kernel/syscalls/chown/chown05.c
index 314e34c..6e34f8d 100644
--- a/testcases/kernel/syscalls/chown/chown05.c
+++ b/testcases/kernel/syscalls/chown/chown05.c
@@ -176,4 +176,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chroot/chroot01.c b/testcases/kernel/syscalls/chroot/chroot01.c
index 070077a..834f66f 100644
--- a/testcases/kernel/syscalls/chroot/chroot01.c
+++ b/testcases/kernel/syscalls/chroot/chroot01.c
@@ -121,4 +121,4 @@
 		tst_brkm(TBROK|TERRNO, NULL, "setuid(0) failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chroot/chroot02.c b/testcases/kernel/syscalls/chroot/chroot02.c
index 063e15c..fe25c88 100644
--- a/testcases/kernel/syscalls/chroot/chroot02.c
+++ b/testcases/kernel/syscalls/chroot/chroot02.c
@@ -152,4 +152,4 @@
 	TEST_CLEANUP;
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chroot/chroot03.c b/testcases/kernel/syscalls/chroot/chroot03.c
index 2e67e92..c1e767c 100644
--- a/testcases/kernel/syscalls/chroot/chroot03.c
+++ b/testcases/kernel/syscalls/chroot/chroot03.c
@@ -216,4 +216,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/chroot/chroot04.c b/testcases/kernel/syscalls/chroot/chroot04.c
index 392c5a3..3b2f538 100644
--- a/testcases/kernel/syscalls/chroot/chroot04.c
+++ b/testcases/kernel/syscalls/chroot/chroot04.c
@@ -146,4 +146,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c b/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
index 8dd5f18..79266df 100644
--- a/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
+++ b/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
@@ -402,4 +402,4 @@
 	cleanup();
 	tst_exit();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone01.c b/testcases/kernel/syscalls/clone/clone01.c
index a7888e4..95c21fc 100644
--- a/testcases/kernel/syscalls/clone/clone01.c
+++ b/testcases/kernel/syscalls/clone/clone01.c
@@ -155,4 +155,4 @@
 int do_child(void)
 {
 	exit(0);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone02.c b/testcases/kernel/syscalls/clone/clone02.c
index f091782..298d20a 100644
--- a/testcases/kernel/syscalls/clone/clone02.c
+++ b/testcases/kernel/syscalls/clone/clone02.c
@@ -318,7 +318,7 @@
 
 	/* Restore parent's working directory */
 	if (chdir(cwd_parent) == -1) {
-		/* 
+		/*
 		 * we have to exit here
 		 *
 		 * XXX (garrcoop): why???
@@ -551,4 +551,4 @@
 /* sig_default_handler() - Default handler for parent */
 void sig_default_handler()
 {
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone03.c b/testcases/kernel/syscalls/clone/clone03.c
index f347614..eed71ec 100644
--- a/testcases/kernel/syscalls/clone/clone03.c
+++ b/testcases/kernel/syscalls/clone/clone03.c
@@ -214,4 +214,4 @@
 		perror("close(pfd[1]) failed");
 	}
 	exit(1);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone04.c b/testcases/kernel/syscalls/clone/clone04.c
index 811ee20..3385f33 100644
--- a/testcases/kernel/syscalls/clone/clone04.c
+++ b/testcases/kernel/syscalls/clone/clone04.c
@@ -193,4 +193,4 @@
 int child_fn()
 {
 	exit(1);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone05.c b/testcases/kernel/syscalls/clone/clone05.c
index ce90d26..e5bf1fa 100644
--- a/testcases/kernel/syscalls/clone/clone05.c
+++ b/testcases/kernel/syscalls/clone/clone05.c
@@ -171,4 +171,4 @@
 	sleep(1);
 	parent_variable = 1;
 	exit(1);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone06.c b/testcases/kernel/syscalls/clone/clone06.c
index c599a06..d79b302 100644
--- a/testcases/kernel/syscalls/clone/clone06.c
+++ b/testcases/kernel/syscalls/clone/clone06.c
@@ -213,4 +213,4 @@
 	}
 
 	exit(0);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/clone/clone07.c b/testcases/kernel/syscalls/clone/clone07.c
index 427508c..cac4447 100644
--- a/testcases/kernel/syscalls/clone/clone07.c
+++ b/testcases/kernel/syscalls/clone/clone07.c
@@ -203,4 +203,4 @@
 	if (child_pid != 0) {
 		fail = TRUE;
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/close/close01.c b/testcases/kernel/syscalls/close/close01.c
index 4fb38a8..6d0876f 100644
--- a/testcases/kernel/syscalls/close/close01.c
+++ b/testcases/kernel/syscalls/close/close01.c
@@ -164,4 +164,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/close/close02.c b/testcases/kernel/syscalls/close/close02.c
index fccc319..6afdf75 100644
--- a/testcases/kernel/syscalls/close/close02.c
+++ b/testcases/kernel/syscalls/close/close02.c
@@ -135,4 +135,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/close/close08.c b/testcases/kernel/syscalls/close/close08.c
index d1221ad..466097c 100644
--- a/testcases/kernel/syscalls/close/close08.c
+++ b/testcases/kernel/syscalls/close/close08.c
@@ -190,4 +190,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat01.c b/testcases/kernel/syscalls/creat/creat01.c
index b8bb587..48bca53 100644
--- a/testcases/kernel/syscalls/creat/creat01.c
+++ b/testcases/kernel/syscalls/creat/creat01.c
@@ -172,4 +172,4 @@
 	unlink(filename);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat03.c b/testcases/kernel/syscalls/creat/creat03.c
index 3a50e2d..64f8e01 100644
--- a/testcases/kernel/syscalls/creat/creat03.c
+++ b/testcases/kernel/syscalls/creat/creat03.c
@@ -135,4 +135,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat04.c b/testcases/kernel/syscalls/creat/creat04.c
index 5cbe707..0e5045c 100644
--- a/testcases/kernel/syscalls/creat/creat04.c
+++ b/testcases/kernel/syscalls/creat/creat04.c
@@ -222,4 +222,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat05.c b/testcases/kernel/syscalls/creat/creat05.c
index e6ef26d..6016c0f 100644
--- a/testcases/kernel/syscalls/creat/creat05.c
+++ b/testcases/kernel/syscalls/creat/creat05.c
@@ -195,4 +195,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat06.c b/testcases/kernel/syscalls/creat/creat06.c
index 23027ce..7f3d15e 100644
--- a/testcases/kernel/syscalls/creat/creat06.c
+++ b/testcases/kernel/syscalls/creat/creat06.c
@@ -229,4 +229,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat07.c b/testcases/kernel/syscalls/creat/creat07.c
index 5f59d93..4fa2ac1 100644
--- a/testcases/kernel/syscalls/creat/creat07.c
+++ b/testcases/kernel/syscalls/creat/creat07.c
@@ -165,4 +165,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat08.c b/testcases/kernel/syscalls/creat/creat08.c
index 90400e3..ec2fcf1 100644
--- a/testcases/kernel/syscalls/creat/creat08.c
+++ b/testcases/kernel/syscalls/creat/creat08.c
@@ -447,4 +447,4 @@
 	if (rmdir(DIR_B) == -1) {
 		tst_brkm(TBROK|TERRNO, NULL, "rmdir %s failed", DIR_B);
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/creat09.c b/testcases/kernel/syscalls/creat/creat09.c
index 7b616e8..c2693c2 100644
--- a/testcases/kernel/syscalls/creat/creat09.c
+++ b/testcases/kernel/syscalls/creat/creat09.c
@@ -187,4 +187,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/creat/test1.c b/testcases/kernel/syscalls/creat/test1.c
index 6a2bb9b..040e138 100644
--- a/testcases/kernel/syscalls/creat/test1.c
+++ b/testcases/kernel/syscalls/creat/test1.c
@@ -31,4 +31,4 @@
 		sleep(1);
 	}
 	return 0;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup01.c b/testcases/kernel/syscalls/dup/dup01.c
index 8579f14..3b30fce 100644
--- a/testcases/kernel/syscalls/dup/dup01.c
+++ b/testcases/kernel/syscalls/dup/dup01.c
@@ -202,4 +202,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup02.c b/testcases/kernel/syscalls/dup/dup02.c
index a117cdf..a8e0ddb 100644
--- a/testcases/kernel/syscalls/dup/dup02.c
+++ b/testcases/kernel/syscalls/dup/dup02.c
@@ -189,4 +189,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup03.c b/testcases/kernel/syscalls/dup/dup03.c
index c686353..0b82956 100644
--- a/testcases/kernel/syscalls/dup/dup03.c
+++ b/testcases/kernel/syscalls/dup/dup03.c
@@ -173,7 +173,7 @@
 	long maxfds;
 
 	maxfds = sysconf(_SC_OPEN_MAX);
-	/* 
+	/*
 	 * Read the errors section if you're so inclined to determine
 	 * why == -1 matters for errno.
 	 */
@@ -221,4 +221,4 @@
 		close(fd[i]);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup04.c b/testcases/kernel/syscalls/dup/dup04.c
index 2ad8e60..5ade374 100644
--- a/testcases/kernel/syscalls/dup/dup04.c
+++ b/testcases/kernel/syscalls/dup/dup04.c
@@ -215,4 +215,4 @@
 		close(i);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup05.c b/testcases/kernel/syscalls/dup/dup05.c
index 3985912..087461b 100644
--- a/testcases/kernel/syscalls/dup/dup05.c
+++ b/testcases/kernel/syscalls/dup/dup05.c
@@ -193,4 +193,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup/dup06.c b/testcases/kernel/syscalls/dup/dup06.c
index e043df2..6cfadb5 100644
--- a/testcases/kernel/syscalls/dup/dup06.c
+++ b/testcases/kernel/syscalls/dup/dup06.c
@@ -116,4 +116,4 @@
 	}
 	tst_exit();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup2/dup201.c b/testcases/kernel/syscalls/dup2/dup201.c
index 62dc8a5..91df5d1 100644
--- a/testcases/kernel/syscalls/dup2/dup201.c
+++ b/testcases/kernel/syscalls/dup2/dup201.c
@@ -185,4 +185,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup2/dup202.c b/testcases/kernel/syscalls/dup2/dup202.c
index 8bd04a6..d71d279 100644
--- a/testcases/kernel/syscalls/dup2/dup202.c
+++ b/testcases/kernel/syscalls/dup2/dup202.c
@@ -172,4 +172,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup2/dup203.c b/testcases/kernel/syscalls/dup2/dup203.c
index 33683f7..fafd40a 100644
--- a/testcases/kernel/syscalls/dup2/dup203.c
+++ b/testcases/kernel/syscalls/dup2/dup203.c
@@ -212,4 +212,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup2/dup204.c b/testcases/kernel/syscalls/dup2/dup204.c
index 97ecbf2..fd20ece 100644
--- a/testcases/kernel/syscalls/dup2/dup204.c
+++ b/testcases/kernel/syscalls/dup2/dup204.c
@@ -129,7 +129,7 @@
 void cleanup()
 {
 	int i;
-	
+
 	TEST_CLEANUP;
 
 	for (i = 0; i < sizeof(fd); i++) {
@@ -138,4 +138,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup2/dup205.c b/testcases/kernel/syscalls/dup2/dup205.c
index 3c97adf..1d56c6f 100644
--- a/testcases/kernel/syscalls/dup2/dup205.c
+++ b/testcases/kernel/syscalls/dup2/dup205.c
@@ -136,4 +136,4 @@
 cleanup(void)
 {
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/dup3/dup3_01.c b/testcases/kernel/syscalls/dup3/dup3_01.c
index 24ffc56..c95e79a 100644
--- a/testcases/kernel/syscalls/dup3/dup3_01.c
+++ b/testcases/kernel/syscalls/dup3/dup3_01.c
@@ -161,4 +161,4 @@
 
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c b/testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c
index 6e6e59c..e6b52a1 100644
--- a/testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c
+++ b/testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c
@@ -171,4 +171,4 @@
 
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execl/execl01.c b/testcases/kernel/syscalls/execl/execl01.c
index 89ec45f..0d6de40 100644
--- a/testcases/kernel/syscalls/execl/execl01.c
+++ b/testcases/kernel/syscalls/execl/execl01.c
@@ -155,7 +155,7 @@
 		switch (pid = FORK_OR_VFORK()) {
 		case 0:	/* CHILD - Call execl(2) */
 			execl("test", "test", NULL);
-			/* 
+			/*
 			 * should not get here!! if we do, the parent will fail
 			 * the Test Case
 			 */
@@ -210,4 +210,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execle/execle01.c b/testcases/kernel/syscalls/execle/execle01.c
index 99818b0..c9d64de 100644
--- a/testcases/kernel/syscalls/execle/execle01.c
+++ b/testcases/kernel/syscalls/execle/execle01.c
@@ -202,4 +202,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execlp/execlp01.c b/testcases/kernel/syscalls/execlp/execlp01.c
index f0b73e9..1808ba1 100644
--- a/testcases/kernel/syscalls/execlp/execlp01.c
+++ b/testcases/kernel/syscalls/execlp/execlp01.c
@@ -198,4 +198,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execv/execv01.c b/testcases/kernel/syscalls/execv/execv01.c
index 69eac9e..0ccb742 100644
--- a/testcases/kernel/syscalls/execv/execv01.c
+++ b/testcases/kernel/syscalls/execv/execv01.c
@@ -202,4 +202,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execve/execve01.c b/testcases/kernel/syscalls/execve/execve01.c
index fb28c07..3aca898 100644
--- a/testcases/kernel/syscalls/execve/execve01.c
+++ b/testcases/kernel/syscalls/execve/execve01.c
@@ -201,4 +201,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execve/execve02.c b/testcases/kernel/syscalls/execve/execve02.c
index 56f7e0c..4a8ed30 100644
--- a/testcases/kernel/syscalls/execve/execve02.c
+++ b/testcases/kernel/syscalls/execve/execve02.c
@@ -212,4 +212,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/execvp/execvp01.c b/testcases/kernel/syscalls/execvp/execvp01.c
index c62e1fe..9e0acb1 100644
--- a/testcases/kernel/syscalls/execvp/execvp01.c
+++ b/testcases/kernel/syscalls/execvp/execvp01.c
@@ -201,4 +201,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fallocate/fallocate01.c b/testcases/kernel/syscalls/fallocate/fallocate01.c
index 8d57bbf..95bf697 100644
--- a/testcases/kernel/syscalls/fallocate/fallocate01.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate01.c
@@ -323,4 +323,4 @@
 				 fd, mode, offset, len, TEST_RETURN);
 		}
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchdir/fchdir01.c b/testcases/kernel/syscalls/fchdir/fchdir01.c
index fc7703c..735c4f6 100644
--- a/testcases/kernel/syscalls/fchdir/fchdir01.c
+++ b/testcases/kernel/syscalls/fchdir/fchdir01.c
@@ -176,4 +176,4 @@
 	tst_rmdir();
 
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchdir/fchdir02.c b/testcases/kernel/syscalls/fchdir/fchdir02.c
index db276f7..5f68c96 100644
--- a/testcases/kernel/syscalls/fchdir/fchdir02.c
+++ b/testcases/kernel/syscalls/fchdir/fchdir02.c
@@ -116,4 +116,4 @@
 	tst_rmdir();
 
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchdir/fchdir03.c b/testcases/kernel/syscalls/fchdir/fchdir03.c
index 996aef4..91ac8b6 100644
--- a/testcases/kernel/syscalls/fchdir/fchdir03.c
+++ b/testcases/kernel/syscalls/fchdir/fchdir03.c
@@ -182,4 +182,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchmod/fchmod01.c b/testcases/kernel/syscalls/fchmod/fchmod01.c
index 34dc329..b2cdf48 100644
--- a/testcases/kernel/syscalls/fchmod/fchmod01.c
+++ b/testcases/kernel/syscalls/fchmod/fchmod01.c
@@ -192,4 +192,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchmod/fchmod03.c b/testcases/kernel/syscalls/fchmod/fchmod03.c
index 23214c2..c4f3668 100644
--- a/testcases/kernel/syscalls/fchmod/fchmod03.c
+++ b/testcases/kernel/syscalls/fchmod/fchmod03.c
@@ -182,4 +182,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchmod/fchmod04.c b/testcases/kernel/syscalls/fchmod/fchmod04.c
index a70a8dd..3132299 100644
--- a/testcases/kernel/syscalls/fchmod/fchmod04.c
+++ b/testcases/kernel/syscalls/fchmod/fchmod04.c
@@ -214,4 +214,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchmod/fchmod06.c b/testcases/kernel/syscalls/fchmod/fchmod06.c
index 928bcff..1f0f203 100644
--- a/testcases/kernel/syscalls/fchmod/fchmod06.c
+++ b/testcases/kernel/syscalls/fchmod/fchmod06.c
@@ -229,4 +229,4 @@
 		tst_resm(TWARN|TERRNO, "closing %s failed", TEST_FILE1);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fchown/fchown01.c b/testcases/kernel/syscalls/fchown/fchown01.c
index 43d60bb..7787b32 100644
--- a/testcases/kernel/syscalls/fchown/fchown01.c
+++ b/testcases/kernel/syscalls/fchown/fchown01.c
@@ -179,4 +179,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl01.c b/testcases/kernel/syscalls/fcntl/fcntl01.c
index 82551f9..615456e 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl01.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl01.c
@@ -186,4 +186,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl02.c b/testcases/kernel/syscalls/fcntl/fcntl02.c
index e6c0a2d..edd5f0f 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl02.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl02.c
@@ -189,4 +189,4 @@
 		tst_resm(TBROK|TERRNO, "close failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl03.c b/testcases/kernel/syscalls/fcntl/fcntl03.c
index eaaf8ac..e9bbd3d 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl03.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl03.c
@@ -185,4 +185,4 @@
 		tst_resm(TWARN|TERRNO, "close failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl04.c b/testcases/kernel/syscalls/fcntl/fcntl04.c
index 21a4837..a184fab 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl04.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl04.c
@@ -184,4 +184,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl05.c b/testcases/kernel/syscalls/fcntl/fcntl05.c
index 7cf78ca..ceb6e3e 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl05.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl05.c
@@ -194,4 +194,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl06.c b/testcases/kernel/syscalls/fcntl/fcntl06.c
index 8f794e0..91af938 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl06.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl06.c
@@ -91,7 +91,7 @@
 			    "fcntl remote locking feature not implemented in "
 			    "the kernel");
 		else {
-			/* 
+			/*
 			 * FIXME (garrcoop): having it always pass on
 			 * non-EINVAL is a bad test.
 			 */
@@ -169,4 +169,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl07.c b/testcases/kernel/syscalls/fcntl/fcntl07.c
index 7b96849..ab68fd0 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl07.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl07.c
@@ -203,10 +203,8 @@
     /***************************************************************
      * parse standard options, and exit if there is an error
      ***************************************************************/
-	if ((msg = parse_opts(ac, av, options, &help)) != NULL) {
+	if ((msg = parse_opts(ac, av, options, &help)) != NULL)
 		tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
-		tst_exit();
-	}
 
 	if (fflag)		/* -F option */
 		File1 = fopt;
diff --git a/testcases/kernel/syscalls/fcntl/fcntl07B.c b/testcases/kernel/syscalls/fcntl/fcntl07B.c
index 986113e..964c194 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl07B.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl07B.c
@@ -202,10 +202,8 @@
     /***************************************************************
      * parse standard options, and exit if there is an error
      ***************************************************************/
-	if ((msg = parse_opts(ac, av, options, &help)) != NULL) {
+	if ((msg = parse_opts(ac, av, options, &help)) != NULL)
 		tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
-		tst_exit();
-	}
 
 	if (fflag)		/* -F option */
 		File1 = fopt;
diff --git a/testcases/kernel/syscalls/fcntl/fcntl08.c b/testcases/kernel/syscalls/fcntl/fcntl08.c
index 5003467..6e6f97b 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl08.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl08.c
@@ -197,4 +197,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fcntl/fcntl09.c b/testcases/kernel/syscalls/fcntl/fcntl09.c
index 9602453..b872a1e 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl09.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl09.c
@@ -221,6 +221,9 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl10.c b/testcases/kernel/syscalls/fcntl/fcntl10.c
index b50021f..f57b32f 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl10.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl10.c
@@ -221,6 +221,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl15.c b/testcases/kernel/syscalls/fcntl/fcntl15.c
index e6f8d39..e61f3b9 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl15.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl15.c
@@ -372,6 +372,7 @@
 int run_test(int file_flag, int file_mode, int dup_flag)
 {
 	int fd_A, fd_B;
+	fd_B = -1;
 	sigset_t newmask, zeromask, oldmask;
 
 	/* setup to catch SIGUSR1 signal from child process */
diff --git a/testcases/kernel/syscalls/fcntl/fcntl18.c b/testcases/kernel/syscalls/fcntl/fcntl18.c
index 4840f17..6a8deb7 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl18.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl18.c
@@ -164,6 +164,7 @@
 	tst_resm(TINFO, "Exit block 3");
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl22.c b/testcases/kernel/syscalls/fcntl/fcntl22.c
index a84bfc9..8329685 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl22.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl22.c
@@ -165,7 +165,7 @@
 		}
 
 	}			/* end for */
-
+	tst_exit();
 }
 
 /*
diff --git a/testcases/kernel/syscalls/fcntl/fcntl23.c b/testcases/kernel/syscalls/fcntl/fcntl23.c
index 9934a94..f6c3d1f 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl23.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl23.c
@@ -190,6 +190,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl24.c b/testcases/kernel/syscalls/fcntl/fcntl24.c
index 4768948..81dec77 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl24.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl24.c
@@ -197,6 +197,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl25.c b/testcases/kernel/syscalls/fcntl/fcntl25.c
index 3de375a..7c593cb 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl25.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl25.c
@@ -198,6 +198,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl26.c b/testcases/kernel/syscalls/fcntl/fcntl26.c
index 9745131..c7b3ee1 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl26.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl26.c
@@ -198,6 +198,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl27.c b/testcases/kernel/syscalls/fcntl/fcntl27.c
index 51db11b..c510ea5 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl27.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl27.c
@@ -159,6 +159,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fcntl/fcntl28.c b/testcases/kernel/syscalls/fcntl/fcntl28.c
index 59c9d33..1abdb86 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl28.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl28.c
@@ -158,6 +158,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/flock/flock02.c b/testcases/kernel/syscalls/flock/flock02.c
index e8fa5a9..2debf0e 100644
--- a/testcases/kernel/syscalls/flock/flock02.c
+++ b/testcases/kernel/syscalls/flock/flock02.c
@@ -172,4 +172,4 @@
 	unlink(filename);
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/flock/flock04.c b/testcases/kernel/syscalls/flock/flock04.c
index 342bb1d..0825c4c 100644
--- a/testcases/kernel/syscalls/flock/flock04.c
+++ b/testcases/kernel/syscalls/flock/flock04.c
@@ -183,4 +183,4 @@
 	unlink(filename);
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/flock/flock05.c b/testcases/kernel/syscalls/flock/flock05.c
index fe01a44..48f4c12 100644
--- a/testcases/kernel/syscalls/flock/flock05.c
+++ b/testcases/kernel/syscalls/flock/flock05.c
@@ -166,6 +166,7 @@
 	close(fd);
 	close(fd1);
 	cleanup();
+	tst_exit();
 
  }
 
diff --git a/testcases/kernel/syscalls/flock/flock06.c b/testcases/kernel/syscalls/flock/flock06.c
index 254f7b6..3fb8ed8 100644
--- a/testcases/kernel/syscalls/flock/flock06.c
+++ b/testcases/kernel/syscalls/flock/flock06.c
@@ -138,6 +138,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/fork/fork07.c b/testcases/kernel/syscalls/fork/fork07.c
index 9afe27a..f0d1ffe 100644
--- a/testcases/kernel/syscalls/fork/fork07.c
+++ b/testcases/kernel/syscalls/fork/fork07.c
@@ -238,4 +238,4 @@
 	unlink(fnamebuf);
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fork/fork10.c b/testcases/kernel/syscalls/fork/fork10.c
index 5bc89cd..893d1fd 100644
--- a/testcases/kernel/syscalls/fork/fork10.c
+++ b/testcases/kernel/syscalls/fork/fork10.c
@@ -194,4 +194,4 @@
 	 */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fstat/fstat01.c b/testcases/kernel/syscalls/fstat/fstat01.c
index 1dca0fc..1d8149a 100644
--- a/testcases/kernel/syscalls/fstat/fstat01.c
+++ b/testcases/kernel/syscalls/fstat/fstat01.c
@@ -166,7 +166,7 @@
 
 	tst_exit();
 }
- 
+
 void setup()
 {
 
@@ -191,4 +191,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fstat/fstat02.c b/testcases/kernel/syscalls/fstat/fstat02.c
index 56b1f11..3ee1a9c 100644
--- a/testcases/kernel/syscalls/fstat/fstat02.c
+++ b/testcases/kernel/syscalls/fstat/fstat02.c
@@ -182,4 +182,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fstat/fstat04.c b/testcases/kernel/syscalls/fstat/fstat04.c
index 77d0e68..fe51bc1 100644
--- a/testcases/kernel/syscalls/fstat/fstat04.c
+++ b/testcases/kernel/syscalls/fstat/fstat04.c
@@ -200,4 +200,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fstatat/fstatat01.c b/testcases/kernel/syscalls/fstatat/fstatat01.c
index beee990..3403cb1 100644
--- a/testcases/kernel/syscalls/fstatat/fstatat01.c
+++ b/testcases/kernel/syscalls/fstatat/fstatat01.c
@@ -214,4 +214,4 @@
 	rmdir(pathname);
 
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fstatfs/fstatfs01.c b/testcases/kernel/syscalls/fstatfs/fstatfs01.c
index fc4deb3..f2c14e5 100644
--- a/testcases/kernel/syscalls/fstatfs/fstatfs01.c
+++ b/testcases/kernel/syscalls/fstatfs/fstatfs01.c
@@ -192,4 +192,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fsync/fsync01.c b/testcases/kernel/syscalls/fsync/fsync01.c
index 515fb27..aaf8452 100644
--- a/testcases/kernel/syscalls/fsync/fsync01.c
+++ b/testcases/kernel/syscalls/fsync/fsync01.c
@@ -187,4 +187,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/fsync/fsync02.c b/testcases/kernel/syscalls/fsync/fsync02.c
index d25dfb2..04a1487 100644
--- a/testcases/kernel/syscalls/fsync/fsync02.c
+++ b/testcases/kernel/syscalls/fsync/fsync02.c
@@ -27,7 +27,7 @@
  * ALGORITHM
  *	1. Create a file.
  *	2. Write to the file at equally spaced intervals up to a max block
- *	3. Check if time limit exceeded.
+ *	3. Check if the time limit was exceeded.
  *
  * USAGE:  <for command-line>
  *  fsync02 [-c n] [-f] [-i n] [-I x] [-P x] [-t]
@@ -86,10 +86,8 @@
 	int data_blocks = 0;
 	long int random_number;
 
-	/* parse standard options */
-	if ((msg = parse_opts(ac, av, NULL, NULL)) != NULL) {
+	if ((msg = parse_opts(ac, av, NULL, NULL)) != NULL)
 		tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
-	}
 
 	setup();
 
@@ -103,57 +101,50 @@
 			data_blocks = random_number % 1000 + 1;
 		}
 
-		for (i = 0; i < data_blocks; i++) {
-			if ((offsetret = lseek(fd, offset = BLOCKSIZE
-					       * max_block / data_blocks * (i +
-									    1)
-					       - BUFSIZ, SEEK_SET)) != offset) {
-				tst_brkm(TBROK, cleanup, "lseek failed");
-			}
-			if ((ret = write(fd, pbuf, BUFSIZ)) != BUFSIZ) {
-				tst_brkm(TBROK, cleanup, "Cannot write "
-					 "to file");
-			}
+		for (i = 1; i <= data_blocks; i++) {
+			offset = (i * BLOCKSIZE * max_block) / data_blocks - BUFSIZ;
+			if ((offsetret = lseek(fd, offset, SEEK_SET)) != offset)
+				tst_brkm(TBROK|TERRNO, cleanup, "lseek failed: %ld, %ld", offsetret, offset);
+			if ((ret = write(fd, pbuf, BUFSIZ)) != BUFSIZ)
+				tst_brkm(TBROK, cleanup, "write failed");
 		}
-		time(&time_start);
+		if (time(&time_start) == -1)
+			tst_brkm(TBROK|TERRNO, cleanup,
+			    "getting start time failed");
 
 		TEST(fsync(fd));
 
-		time(&time_end);
+		if (time(&time_end) == -1)
+			tst_brkm(TBROK|TERRNO, cleanup,
+			    "getting end time failed");
 
 		if (TEST_RETURN == -1) {
-			tst_resm(TFAIL, "fsync failed - %d : %s",
-				 TEST_ERRNO, strerror(TEST_ERRNO));
+			tst_resm(TFAIL|TTERRNO, "fsync failed");
 			continue;
 		}
 
 		if (STD_FUNCTIONAL_TEST) {
-			if (time_end < time_start) {
-				tst_resm(TFAIL,
-					 "timer broken end %ld < start %ld",
-					 time_end, time_start);
-			}
+			if (time_end < time_start)
+				tst_resm(TBROK,
+				    "timer broken end %ld < start %ld",
+				    time_end, time_start);
 
 			if ((time_delta =
-			     difftime(time_end, time_start)) > TIME_LIMIT) {
+			     difftime(time_end, time_start)) > TIME_LIMIT)
 				tst_resm(TFAIL,
-					 "fsync took too long: %d "
-					 "seconds; max_block: %d; data_blocks: "
-					 "%d", (int)time_delta, max_block,
-					 data_blocks);
-			} else {
-				tst_resm(TPASS, "fsync() succeeded in an "
+				    "fsync took too long: %lf seconds; "
+				    "max_block: %d; data_blocks: %d",
+				    time_delta, max_block, data_blocks);
+			else
+				tst_resm(TPASS, "fsync succeeded in an "
 					 "acceptable amount of time");
-			}
-		} else {
+		} else
 			tst_resm(TPASS, "call succeeded");
-		}
 
-		if (ftruncate(fd, 0) < 0) {
+		if (ftruncate(fd, 0) == -1)
 			tst_brkm(TBROK, cleanup, "ftruncate failed");
-		}
 	}
-	close(fd);
+
 	sync();
 	cleanup();
 	tst_exit();
@@ -177,43 +168,33 @@
 	sprintf(tempfile, "%s.%d", TCID, pid = getpid());
 	srand48(pid);
 
-	if ((fd = open(tempfile, O_RDWR | O_CREAT | O_TRUNC, 0777)) == -1) {
-		tst_brkm(TBROK, cleanup, "Can't open temp file");
-	}
+	if ((fd = open(tempfile, O_RDWR | O_CREAT | O_TRUNC, 0777)) == -1)
+		tst_brkm(TBROK, cleanup, "open failed");
 
-	if (fstatvfs(fd, &stat_buf) != 0) {
-		tst_brkm(TBROK, cleanup, "Can't get the information about the "
-			 "file system");
-	}
+	if (fstatvfs(fd, &stat_buf) != 0)
+		tst_brkm(TBROK, cleanup, "fstatvfs failed");
 
 	f_bavail = stat_buf.f_bavail / (BLOCKSIZE / stat_buf.f_frsize);
 	if (f_bavail && (f_bavail < MAXBLKS))
 		max_blks = f_bavail;
 
 #ifdef LARGEFILE
-	if ((fcntl(fd, F_SETFL, O_LARGEFILE)) == -1) {
-		tst_brkm(TBROK, cleanup, "fcntl failed to O_LARGEFILE");
-	}
+	if ((fcntl(fd, F_SETFL, O_LARGEFILE)) == -1)
+		tst_brkm(TBROK|TERRNO, cleanup,
+		    "fcntl(.., O_LARGEFILE) failed");
 
-	if (write(fd, pbuf, BUFSIZ) != BUFSIZ) {
-		tst_brkm(TBROK, cleanup, "Cannot write to tempfile");
-	}
+	if (write(fd, pbuf, BUFSIZ) != BUFSIZ)
+		tst_brkm(TBROK|TERRNO, cleanup, "write(fd, pbuf, ..) failed");
 #endif
 }
 
-/*
- * cleanup() - performs all ONE TIME cleanup for this test at
- *	       completion or premature exit.
- */
 void cleanup()
 {
-	/*
-	 * print timing stats if that option was specified.
-	 * print errno log if that option was specified.
-	 */
 	TEST_CLEANUP;
 
-	/* delete the test directory created in setup() */
+	if (close(fd) == -1)
+		tst_resm(TWARN|TERRNO, "close failed");
+
 	tst_rmdir();
 
 }
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c b/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
index 8691259..27c0be6 100644
--- a/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
+++ b/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
@@ -203,4 +203,4 @@
 void cleanup(void)
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getcontext/getcontext01.c b/testcases/kernel/syscalls/getcontext/getcontext01.c
index 91a3b03..7cadc67 100644
--- a/testcases/kernel/syscalls/getcontext/getcontext01.c
+++ b/testcases/kernel/syscalls/getcontext/getcontext01.c
@@ -102,4 +102,4 @@
 {
 	tst_brkm(TCONF, NULL, "system doesn't have getcontext support");
 }
-#endif
+#endif
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getdomainname/getdomainname01.c b/testcases/kernel/syscalls/getdomainname/getdomainname01.c
index ab5c8c6..56f80d7 100644
--- a/testcases/kernel/syscalls/getdomainname/getdomainname01.c
+++ b/testcases/kernel/syscalls/getdomainname/getdomainname01.c
@@ -139,4 +139,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getegid/getegid01.c b/testcases/kernel/syscalls/getegid/getegid01.c
index c20cc1b..cf67169 100644
--- a/testcases/kernel/syscalls/getegid/getegid01.c
+++ b/testcases/kernel/syscalls/getegid/getegid01.c
@@ -170,4 +170,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getegid/getegid02.c b/testcases/kernel/syscalls/getegid/getegid02.c
index 46dc21c..f187f9c 100644
--- a/testcases/kernel/syscalls/getegid/getegid02.c
+++ b/testcases/kernel/syscalls/getegid/getegid02.c
@@ -153,4 +153,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/geteuid/geteuid01.c b/testcases/kernel/syscalls/geteuid/geteuid01.c
index 03bc94f..d6e0ee6 100644
--- a/testcases/kernel/syscalls/geteuid/geteuid01.c
+++ b/testcases/kernel/syscalls/geteuid/geteuid01.c
@@ -169,4 +169,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getgid/getgid01.c b/testcases/kernel/syscalls/getgid/getgid01.c
index 5247300..ab60d1d 100644
--- a/testcases/kernel/syscalls/getgid/getgid01.c
+++ b/testcases/kernel/syscalls/getgid/getgid01.c
@@ -170,4 +170,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getgroups/getgroups01.c b/testcases/kernel/syscalls/getgroups/getgroups01.c
index 02336cf..1704816 100644
--- a/testcases/kernel/syscalls/getgroups/getgroups01.c
+++ b/testcases/kernel/syscalls/getgroups/getgroups01.c
@@ -220,4 +220,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getgroups/getgroups02.c b/testcases/kernel/syscalls/getgroups/getgroups02.c
index 11710ae..efacf42 100644
--- a/testcases/kernel/syscalls/getgroups/getgroups02.c
+++ b/testcases/kernel/syscalls/getgroups/getgroups02.c
@@ -175,4 +175,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getgroups/getgroups03.c b/testcases/kernel/syscalls/getgroups/getgroups03.c
index 8483c77..1f7350b 100644
--- a/testcases/kernel/syscalls/getgroups/getgroups03.c
+++ b/testcases/kernel/syscalls/getgroups/getgroups03.c
@@ -296,4 +296,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getgroups/getgroups04.c b/testcases/kernel/syscalls/getgroups/getgroups04.c
index a786aeb..0ad0e3e 100644
--- a/testcases/kernel/syscalls/getgroups/getgroups04.c
+++ b/testcases/kernel/syscalls/getgroups/getgroups04.c
@@ -166,4 +166,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/gethostid/gethostid01.c b/testcases/kernel/syscalls/gethostid/gethostid01.c
index 62dcd7d..2f57ac6 100644
--- a/testcases/kernel/syscalls/gethostid/gethostid01.c
+++ b/testcases/kernel/syscalls/gethostid/gethostid01.c
@@ -190,7 +190,7 @@
 				    "hostid is %s", hostid);
 			} else {
 
-				/* 
+				/*
 				 * Some distros add an "0x" to the front of the
 				 * `hostid` output. We compare the first 2
 				 * characters of the `hostid` output with "0x",
@@ -203,7 +203,7 @@
 				else
 					strncpy(name2, name, HOSTIDLEN);
 
-				/* 
+				/*
 				 * This code handles situations where ffffffff
 				 * is appended. Fixed to not clobber the first
 				 * check with the 2nd check MR
@@ -265,4 +265,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/gethostname/gethostname01.c b/testcases/kernel/syscalls/gethostname/gethostname01.c
index 1d097cd..561ebcf 100644
--- a/testcases/kernel/syscalls/gethostname/gethostname01.c
+++ b/testcases/kernel/syscalls/gethostname/gethostname01.c
@@ -168,4 +168,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getpagesize/getpagesize01.c b/testcases/kernel/syscalls/getpagesize/getpagesize01.c
index fbea060..159974f 100644
--- a/testcases/kernel/syscalls/getpagesize/getpagesize01.c
+++ b/testcases/kernel/syscalls/getpagesize/getpagesize01.c
@@ -114,4 +114,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getpgid/getpgid01.c b/testcases/kernel/syscalls/getpgid/getpgid01.c
index 89c240c..01fe3ac 100644
--- a/testcases/kernel/syscalls/getpgid/getpgid01.c
+++ b/testcases/kernel/syscalls/getpgid/getpgid01.c
@@ -195,4 +195,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getpgrp/getpgrp01.c b/testcases/kernel/syscalls/getpgrp/getpgrp01.c
index 263c074..3ad4fe5 100644
--- a/testcases/kernel/syscalls/getpgrp/getpgrp01.c
+++ b/testcases/kernel/syscalls/getpgrp/getpgrp01.c
@@ -168,4 +168,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getpid/getpid01.c b/testcases/kernel/syscalls/getpid/getpid01.c
index 5071f9b..31e3914 100644
--- a/testcases/kernel/syscalls/getpid/getpid01.c
+++ b/testcases/kernel/syscalls/getpid/getpid01.c
@@ -166,4 +166,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getpid/getpid02.c b/testcases/kernel/syscalls/getpid/getpid02.c
index 55f0075..4fe4761 100644
--- a/testcases/kernel/syscalls/getpid/getpid02.c
+++ b/testcases/kernel/syscalls/getpid/getpid02.c
@@ -142,4 +142,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getppid/getppid01.c b/testcases/kernel/syscalls/getppid/getppid01.c
index 92e0290..453c15f 100644
--- a/testcases/kernel/syscalls/getppid/getppid01.c
+++ b/testcases/kernel/syscalls/getppid/getppid01.c
@@ -169,4 +169,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getppid/getppid02.c b/testcases/kernel/syscalls/getppid/getppid02.c
index 4a22ab5..a82d19a 100644
--- a/testcases/kernel/syscalls/getppid/getppid02.c
+++ b/testcases/kernel/syscalls/getppid/getppid02.c
@@ -111,4 +111,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getrusage/getrusage01.c b/testcases/kernel/syscalls/getrusage/getrusage01.c
index 32ae8fa..135ee70 100644
--- a/testcases/kernel/syscalls/getrusage/getrusage01.c
+++ b/testcases/kernel/syscalls/getrusage/getrusage01.c
@@ -120,4 +120,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getrusage/getrusage02.c b/testcases/kernel/syscalls/getrusage/getrusage02.c
index 9e0e5f1..221ee71 100644
--- a/testcases/kernel/syscalls/getrusage/getrusage02.c
+++ b/testcases/kernel/syscalls/getrusage/getrusage02.c
@@ -149,4 +149,4 @@
 
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getuid/getuid01.c b/testcases/kernel/syscalls/getuid/getuid01.c
index 611df98..31c2cc9 100644
--- a/testcases/kernel/syscalls/getuid/getuid01.c
+++ b/testcases/kernel/syscalls/getuid/getuid01.c
@@ -168,4 +168,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getuid/getuid02.c b/testcases/kernel/syscalls/getuid/getuid02.c
index 0a19c15..79b5a6f 100644
--- a/testcases/kernel/syscalls/getuid/getuid02.c
+++ b/testcases/kernel/syscalls/getuid/getuid02.c
@@ -109,4 +109,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/getuid/getuid03.c b/testcases/kernel/syscalls/getuid/getuid03.c
index 5ebc780..9f61015 100644
--- a/testcases/kernel/syscalls/getuid/getuid03.c
+++ b/testcases/kernel/syscalls/getuid/getuid03.c
@@ -108,4 +108,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/inotify_init/inotify_init1_01.c b/testcases/kernel/syscalls/inotify_init/inotify_init1_01.c
index a2bd7f0..ab8d6df 100644
--- a/testcases/kernel/syscalls/inotify_init/inotify_init1_01.c
+++ b/testcases/kernel/syscalls/inotify_init/inotify_init1_01.c
@@ -185,4 +185,4 @@
 	}
 	tst_exit();
 	cleanup();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/inotify_init/inotify_init1_02.c b/testcases/kernel/syscalls/inotify_init/inotify_init1_02.c
index 9cdb090..690754b 100644
--- a/testcases/kernel/syscalls/inotify_init/inotify_init1_02.c
+++ b/testcases/kernel/syscalls/inotify_init/inotify_init1_02.c
@@ -181,4 +181,4 @@
 		}
 	}
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ioctl/ioctl01.c b/testcases/kernel/syscalls/ioctl/ioctl01.c
index c6bf6ef..22cb003 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl01.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl01.c
@@ -207,4 +207,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ioctl/ioctl02.c b/testcases/kernel/syscalls/ioctl/ioctl02.c
index 1f6c9d1..46bea49 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl02.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl02.c
@@ -498,4 +498,4 @@
 			tst_resm(TINFO, "close() failed in cleanup()");
 	}
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ioctl/ioctl03.c b/testcases/kernel/syscalls/ioctl/ioctl03.c
index b8e8808..2ec7cd2 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl03.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl03.c
@@ -154,4 +154,4 @@
 		tst_resm(TFAIL, "(UNKNOWN %#x)", features);
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ioperm/ioperm01.c b/testcases/kernel/syscalls/ioperm/ioperm01.c
index 4c3fb67..82214d1 100644
--- a/testcases/kernel/syscalls/ioperm/ioperm01.c
+++ b/testcases/kernel/syscalls/ioperm/ioperm01.c
@@ -121,6 +121,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -190,4 +191,4 @@
 	tst_exit();
 }
 
-#endif /* __i386__ */
+#endif /* __i386__ */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ioperm/ioperm02.c b/testcases/kernel/syscalls/ioperm/ioperm02.c
index 69c51bf..5c2e6cb 100644
--- a/testcases/kernel/syscalls/ioperm/ioperm02.c
+++ b/testcases/kernel/syscalls/ioperm/ioperm02.c
@@ -271,4 +271,4 @@
 	tst_exit();
 }
 
-#endif /* __i386__ */
+#endif /* __i386__ */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/iopl/iopl01.c b/testcases/kernel/syscalls/iopl/iopl01.c
index eb4fc72..ee050f0 100644
--- a/testcases/kernel/syscalls/iopl/iopl01.c
+++ b/testcases/kernel/syscalls/iopl/iopl01.c
@@ -119,6 +119,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c b/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c
index 2c37e6b..0aa025d 100644
--- a/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c
+++ b/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c
@@ -488,4 +488,4 @@
 	TEST_CLEANUP;
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv01.c b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv01.c
index 0f16790..261d2f3 100644
--- a/testcases/kernel/syscalls/ipc/msgrcv/msgrcv01.c
+++ b/testcases/kernel/syscalls/ipc/msgrcv/msgrcv01.c
@@ -134,6 +134,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
     /** NOT REACHED **/
 
diff --git a/testcases/kernel/syscalls/ipc/shmat/shmat02.c b/testcases/kernel/syscalls/ipc/shmat/shmat02.c
index cea52c4..8b8cc1a 100644
--- a/testcases/kernel/syscalls/ipc/shmat/shmat02.c
+++ b/testcases/kernel/syscalls/ipc/shmat/shmat02.c
@@ -135,7 +135,7 @@
 
 			if (errno == tc->error)
 				tst_resm(TPASS|TERRNO,
-				    "shmat failed as expected"); 
+				    "shmat failed as expected");
 			else
 				tst_resm(TFAIL,
 				    "shmat failed unexpectedly; expected: "
@@ -188,7 +188,7 @@
 	if (shmdt((const void *)base_addr) == -1)
 		tst_brkm(TBROK|TERRNO, cleanup, "shmat #2 failed");
 
-	/* 
+	/*
 	 * some architectures (e.g. parisc) are strange, so better always align
 	 * to next SHMLBA address
 	 */
@@ -214,4 +214,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
index 80c27d2..da52b85 100644
--- a/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
+++ b/testcases/kernel/syscalls/ipc/shmctl/shmctl01.c
@@ -535,4 +535,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/kill/kill02.c b/testcases/kernel/syscalls/kill/kill02.c
index 18629e9..82b05fc 100644
--- a/testcases/kernel/syscalls/kill/kill02.c
+++ b/testcases/kernel/syscalls/kill/kill02.c
@@ -875,4 +875,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/kill/kill09.c b/testcases/kernel/syscalls/kill/kill09.c
index afa323b..c19ef3c 100644
--- a/testcases/kernel/syscalls/kill/kill09.c
+++ b/testcases/kernel/syscalls/kill/kill09.c
@@ -213,4 +213,4 @@
 void alarm_handler(int sig)
 {
 	exit(8);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/kill/kill11.c b/testcases/kernel/syscalls/kill/kill11.c
index 2ca6f4a..596c23a 100644
--- a/testcases/kernel/syscalls/kill/kill11.c
+++ b/testcases/kernel/syscalls/kill/kill11.c
@@ -292,4 +292,4 @@
 	return 0;
 }
 
-/****** ** **   *******/
+/****** ** **   *******/
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/lchown/lchown01.c b/testcases/kernel/syscalls/lchown/lchown01.c
index ed8d98a..ef4d521 100644
--- a/testcases/kernel/syscalls/lchown/lchown01.c
+++ b/testcases/kernel/syscalls/lchown/lchown01.c
@@ -230,4 +230,4 @@
 	TEST_CLEANUP;
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/lchown/lchown02.c b/testcases/kernel/syscalls/lchown/lchown02.c
index 876dd26..cffba9c 100644
--- a/testcases/kernel/syscalls/lchown/lchown02.c
+++ b/testcases/kernel/syscalls/lchown/lchown02.c
@@ -381,4 +381,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/link/link02.c b/testcases/kernel/syscalls/link/link02.c
index f6c384a..4ddd818 100644
--- a/testcases/kernel/syscalls/link/link02.c
+++ b/testcases/kernel/syscalls/link/link02.c
@@ -206,6 +206,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/link/link06.c b/testcases/kernel/syscalls/link/link06.c
index 3248d7e..a5dfaa0 100644
--- a/testcases/kernel/syscalls/link/link06.c
+++ b/testcases/kernel/syscalls/link/link06.c
@@ -156,6 +156,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/link/link07.c b/testcases/kernel/syscalls/link/link07.c
index 5b40704..ec523a7 100644
--- a/testcases/kernel/syscalls/link/link07.c
+++ b/testcases/kernel/syscalls/link/link07.c
@@ -162,6 +162,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek01.c b/testcases/kernel/syscalls/lseek/lseek01.c
index 399e35a..2100d40 100644
--- a/testcases/kernel/syscalls/lseek/lseek01.c
+++ b/testcases/kernel/syscalls/lseek/lseek01.c
@@ -200,6 +200,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek02.c b/testcases/kernel/syscalls/lseek/lseek02.c
index 59fa59b..567978c 100644
--- a/testcases/kernel/syscalls/lseek/lseek02.c
+++ b/testcases/kernel/syscalls/lseek/lseek02.c
@@ -195,6 +195,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek03.c b/testcases/kernel/syscalls/lseek/lseek03.c
index b192676..56a42c7 100644
--- a/testcases/kernel/syscalls/lseek/lseek03.c
+++ b/testcases/kernel/syscalls/lseek/lseek03.c
@@ -224,6 +224,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek04.c b/testcases/kernel/syscalls/lseek/lseek04.c
index 7858244..334b352 100644
--- a/testcases/kernel/syscalls/lseek/lseek04.c
+++ b/testcases/kernel/syscalls/lseek/lseek04.c
@@ -192,6 +192,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek05.c b/testcases/kernel/syscalls/lseek/lseek05.c
index d8cbe19..56caa37 100644
--- a/testcases/kernel/syscalls/lseek/lseek05.c
+++ b/testcases/kernel/syscalls/lseek/lseek05.c
@@ -193,6 +193,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek06.c b/testcases/kernel/syscalls/lseek/lseek06.c
index e4f4571..47973a9 100644
--- a/testcases/kernel/syscalls/lseek/lseek06.c
+++ b/testcases/kernel/syscalls/lseek/lseek06.c
@@ -159,6 +159,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek08.c b/testcases/kernel/syscalls/lseek/lseek08.c
index 320ff98..51010fa 100644
--- a/testcases/kernel/syscalls/lseek/lseek08.c
+++ b/testcases/kernel/syscalls/lseek/lseek08.c
@@ -151,6 +151,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek09.c b/testcases/kernel/syscalls/lseek/lseek09.c
index 76fd1ec..36f0ae5 100644
--- a/testcases/kernel/syscalls/lseek/lseek09.c
+++ b/testcases/kernel/syscalls/lseek/lseek09.c
@@ -171,6 +171,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lseek/lseek10.c b/testcases/kernel/syscalls/lseek/lseek10.c
index bfcbf8b..3ddd5bc 100644
--- a/testcases/kernel/syscalls/lseek/lseek10.c
+++ b/testcases/kernel/syscalls/lseek/lseek10.c
@@ -182,6 +182,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lstat/lstat01.c b/testcases/kernel/syscalls/lstat/lstat01.c
index f320ff5..683e0bd 100644
--- a/testcases/kernel/syscalls/lstat/lstat01.c
+++ b/testcases/kernel/syscalls/lstat/lstat01.c
@@ -186,6 +186,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lstat/lstat02.c b/testcases/kernel/syscalls/lstat/lstat02.c
index de3b3f5..949ab20 100644
--- a/testcases/kernel/syscalls/lstat/lstat02.c
+++ b/testcases/kernel/syscalls/lstat/lstat02.c
@@ -211,6 +211,8 @@
 	 * in the setup().
 	 */
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/lstat/lstat03.c b/testcases/kernel/syscalls/lstat/lstat03.c
index fffbf0f..7047bd3 100644
--- a/testcases/kernel/syscalls/lstat/lstat03.c
+++ b/testcases/kernel/syscalls/lstat/lstat03.c
@@ -151,6 +151,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/madvise/madvise01.c b/testcases/kernel/syscalls/madvise/madvise01.c
index 5f858bf..63016a3 100644
--- a/testcases/kernel/syscalls/madvise/madvise01.c
+++ b/testcases/kernel/syscalls/madvise/madvise01.c
@@ -208,4 +208,4 @@
 		tst_resm(TFAIL|TTERRNO, "madvise test for %s failed", advice);
 	else if (STD_FUNCTIONAL_TEST)
 		tst_resm(TPASS, "madvise test for %s PASSED", advice);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/madvise/madvise02.c b/testcases/kernel/syscalls/madvise/madvise02.c
index 13854cc..797f38f 100644
--- a/testcases/kernel/syscalls/madvise/madvise02.c
+++ b/testcases/kernel/syscalls/madvise/madvise02.c
@@ -234,7 +234,7 @@
 			tst_brkm(TBROK|TERRNO, cleanup, "munmap [low] failed");
 		/* Create one memory segment using malloc */
 		ptr_memory_allocated = (char *)malloc(5 * pagesize);
-		/* 
+		/*
 		 * Take temporary pointer for later use, freeing up the
 		 * original one.
 		 */
@@ -284,4 +284,4 @@
 			    expected_errno, strerror(expected_errno));
 	} else
 		tst_resm(TFAIL, "madvise succeeded unexpectedly");
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/madvise/madvise03.c b/testcases/kernel/syscalls/madvise/madvise03.c
index 62a6599..ecff467 100644
--- a/testcases/kernel/syscalls/madvise/madvise03.c
+++ b/testcases/kernel/syscalls/madvise/madvise03.c
@@ -274,4 +274,4 @@
 	tst_brkm(TCONF, NULL,
 	    "this system doesn't have required madvise support");
 }
-#endif
+#endif
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mkdir/mkdir01.c b/testcases/kernel/syscalls/mkdir/mkdir01.c
index ff86ddb..7caad46 100644
--- a/testcases/kernel/syscalls/mkdir/mkdir01.c
+++ b/testcases/kernel/syscalls/mkdir/mkdir01.c
@@ -210,6 +210,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -254,4 +255,4 @@
 	 * Exit with return code appropriate for results.
 	 */
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mkdir/mkdir04.c b/testcases/kernel/syscalls/mkdir/mkdir04.c
index 07a1091..7dfcb35 100644
--- a/testcases/kernel/syscalls/mkdir/mkdir04.c
+++ b/testcases/kernel/syscalls/mkdir/mkdir04.c
@@ -210,6 +210,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mkdir/mkdir05.c b/testcases/kernel/syscalls/mkdir/mkdir05.c
index 8a50497..efb8d66 100644
--- a/testcases/kernel/syscalls/mkdir/mkdir05.c
+++ b/testcases/kernel/syscalls/mkdir/mkdir05.c
@@ -161,6 +161,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mkdir/mkdir08.c b/testcases/kernel/syscalls/mkdir/mkdir08.c
index cc22483..adf2917 100644
--- a/testcases/kernel/syscalls/mkdir/mkdir08.c
+++ b/testcases/kernel/syscalls/mkdir/mkdir08.c
@@ -188,6 +188,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mkdir/mkdir09.c b/testcases/kernel/syscalls/mkdir/mkdir09.c
index 029dd1c..547cf5a 100644
--- a/testcases/kernel/syscalls/mkdir/mkdir09.c
+++ b/testcases/kernel/syscalls/mkdir/mkdir09.c
@@ -178,6 +178,7 @@
 
 	runtest();
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mknod/mknod07.c b/testcases/kernel/syscalls/mknod/mknod07.c
index 328ecd3..a39dd9d 100644
--- a/testcases/kernel/syscalls/mknod/mknod07.c
+++ b/testcases/kernel/syscalls/mknod/mknod07.c
@@ -200,4 +200,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mlock/mlock01.c b/testcases/kernel/syscalls/mlock/mlock01.c
index 8a8109f..7877c4a 100644
--- a/testcases/kernel/syscalls/mlock/mlock01.c
+++ b/testcases/kernel/syscalls/mlock/mlock01.c
@@ -92,10 +92,10 @@
 
 	TEST_EXP_ENOS(exp_enos);
 
-	/* 
+	/*
 	 * FIXME (garrcoop): this should really test out whether or not the
 	 * process's mappable address space is indeed accessible by the
-	 * current user, instead of needing to be run by root all the time. 
+	 * current user, instead of needing to be run by root all the time.
 	 */
 	tst_require_root(NULL);
 
@@ -111,7 +111,7 @@
 			TEST(mlock(*(TC[i].addr), TC[i].len));
 
 			/* I'm confused -- given the description above this
-			 * should fail as designed, but this application 
+			 * should fail as designed, but this application
 			 * */
 			if (TEST_RETURN == -1)
 				tst_resm(TFAIL|TTERRNO, "mlock failed");
@@ -150,4 +150,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mlock/mlock02.c b/testcases/kernel/syscalls/mlock/mlock02.c
index 59e9c4e..dc69dd9 100644
--- a/testcases/kernel/syscalls/mlock/mlock02.c
+++ b/testcases/kernel/syscalls/mlock/mlock02.c
@@ -147,4 +147,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mlock/mlock03.c b/testcases/kernel/syscalls/mlock/mlock03.c
index 1df5761..8ed9378 100644
--- a/testcases/kernel/syscalls/mlock/mlock03.c
+++ b/testcases/kernel/syscalls/mlock/mlock03.c
@@ -117,4 +117,4 @@
 void cleanup(void)
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mmap/mmap01.c b/testcases/kernel/syscalls/mmap/mmap01.c
index 4e21fac..00d190f 100644
--- a/testcases/kernel/syscalls/mmap/mmap01.c
+++ b/testcases/kernel/syscalls/mmap/mmap01.c
@@ -184,6 +184,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap02.c b/testcases/kernel/syscalls/mmap/mmap02.c
index 6af8a2d..34a3108 100644
--- a/testcases/kernel/syscalls/mmap/mmap02.c
+++ b/testcases/kernel/syscalls/mmap/mmap02.c
@@ -161,6 +161,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap03.c b/testcases/kernel/syscalls/mmap/mmap03.c
index b696363..f6d4384 100644
--- a/testcases/kernel/syscalls/mmap/mmap03.c
+++ b/testcases/kernel/syscalls/mmap/mmap03.c
@@ -192,6 +192,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap04.c b/testcases/kernel/syscalls/mmap/mmap04.c
index 6f7a4f7..c825d38 100644
--- a/testcases/kernel/syscalls/mmap/mmap04.c
+++ b/testcases/kernel/syscalls/mmap/mmap04.c
@@ -164,6 +164,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap05.c b/testcases/kernel/syscalls/mmap/mmap05.c
index e717be9..4971190 100644
--- a/testcases/kernel/syscalls/mmap/mmap05.c
+++ b/testcases/kernel/syscalls/mmap/mmap05.c
@@ -168,6 +168,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap06.c b/testcases/kernel/syscalls/mmap/mmap06.c
index 1421f5c..de3534d 100644
--- a/testcases/kernel/syscalls/mmap/mmap06.c
+++ b/testcases/kernel/syscalls/mmap/mmap06.c
@@ -143,6 +143,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap07.c b/testcases/kernel/syscalls/mmap/mmap07.c
index d7d419e..8044428 100644
--- a/testcases/kernel/syscalls/mmap/mmap07.c
+++ b/testcases/kernel/syscalls/mmap/mmap07.c
@@ -145,6 +145,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mmap/mmap08.c b/testcases/kernel/syscalls/mmap/mmap08.c
index a76c56b..e4631be 100644
--- a/testcases/kernel/syscalls/mmap/mmap08.c
+++ b/testcases/kernel/syscalls/mmap/mmap08.c
@@ -139,6 +139,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/modify_ldt/modify_ldt01.c b/testcases/kernel/syscalls/modify_ldt/modify_ldt01.c
index f90036d..f59f50a 100644
--- a/testcases/kernel/syscalls/modify_ldt/modify_ldt01.c
+++ b/testcases/kernel/syscalls/modify_ldt/modify_ldt01.c
@@ -213,6 +213,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/modify_ldt/modify_ldt02.c b/testcases/kernel/syscalls/modify_ldt/modify_ldt02.c
index 0f1e72c..8d7ada9 100644
--- a/testcases/kernel/syscalls/modify_ldt/modify_ldt02.c
+++ b/testcases/kernel/syscalls/modify_ldt/modify_ldt02.c
@@ -166,6 +166,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mount/mount03.c b/testcases/kernel/syscalls/mount/mount03.c
index 8b772fe..302fd58 100644
--- a/testcases/kernel/syscalls/mount/mount03.c
+++ b/testcases/kernel/syscalls/mount/mount03.c
@@ -518,4 +518,4 @@
 	printf("-T type	  : specifies the type of filesystem to be mounted."
 	       " Default ext2. \n");
 	printf("-D device : device used for mounting \n");
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/move_pages/move_pages01.c b/testcases/kernel/syscalls/move_pages/move_pages01.c
index 6aef8c5..1e7245e 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages01.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages01.c
@@ -114,6 +114,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages02.c b/testcases/kernel/syscalls/move_pages/move_pages02.c
index 30df45b..bbf8fe2 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages02.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages02.c
@@ -125,6 +125,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages04.c b/testcases/kernel/syscalls/move_pages/move_pages04.c
index cda7395..ae6c959 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages04.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages04.c
@@ -144,6 +144,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages06.c b/testcases/kernel/syscalls/move_pages/move_pages06.c
index 512e908..fdd900f 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages06.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages06.c
@@ -121,6 +121,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages07.c b/testcases/kernel/syscalls/move_pages/move_pages07.c
index 2f81734..e7a6e08 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages07.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages07.c
@@ -132,6 +132,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages08.c b/testcases/kernel/syscalls/move_pages/move_pages08.c
index c681b0b..bf17147 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages08.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages08.c
@@ -120,6 +120,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages09.c b/testcases/kernel/syscalls/move_pages/move_pages09.c
index fb1bed7..b4b995b 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages09.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages09.c
@@ -119,6 +119,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/move_pages/move_pages10.c b/testcases/kernel/syscalls/move_pages/move_pages10.c
index 8fb8ca7..7ab4b68 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages10.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages10.c
@@ -120,6 +120,7 @@
 #endif
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mprotect/mprotect03.c b/testcases/kernel/syscalls/mprotect/mprotect03.c
index c7ea4ad..5b23594 100644
--- a/testcases/kernel/syscalls/mprotect/mprotect03.c
+++ b/testcases/kernel/syscalls/mprotect/mprotect03.c
@@ -161,6 +161,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/mq_notify/mq_notify01.c b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
index 9a131d8..271133b 100644
--- a/testcases/kernel/syscalls/mq_notify/mq_notify01.c
+++ b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
@@ -443,4 +443,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c b/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
index 0b3e774..7091dcd 100644
--- a/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
+++ b/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
@@ -479,4 +479,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mremap/mremap01.c b/testcases/kernel/syscalls/mremap/mremap01.c
index ee68436..ea53cf1 100644
--- a/testcases/kernel/syscalls/mremap/mremap01.c
+++ b/testcases/kernel/syscalls/mremap/mremap01.c
@@ -256,4 +256,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mremap/mremap02.c b/testcases/kernel/syscalls/mremap/mremap02.c
index 9a9c9d6..73337bc 100644
--- a/testcases/kernel/syscalls/mremap/mremap02.c
+++ b/testcases/kernel/syscalls/mremap/mremap02.c
@@ -146,6 +146,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -190,4 +191,4 @@
 
 	/* Exit the program */
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mremap/mremap03.c b/testcases/kernel/syscalls/mremap/mremap03.c
index dae6b53..93bbaae 100644
--- a/testcases/kernel/syscalls/mremap/mremap03.c
+++ b/testcases/kernel/syscalls/mremap/mremap03.c
@@ -149,6 +149,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -209,4 +210,4 @@
 	tst_exit();
 }
 
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/mremap/mremap04.c b/testcases/kernel/syscalls/mremap/mremap04.c
index 2214ad4..5fc5249 100644
--- a/testcases/kernel/syscalls/mremap/mremap04.c
+++ b/testcases/kernel/syscalls/mremap/mremap04.c
@@ -160,6 +160,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -257,4 +258,4 @@
 
 	/* Exit the program */
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/msync/msync01.c b/testcases/kernel/syscalls/msync/msync01.c
index 541345d..55916c3 100644
--- a/testcases/kernel/syscalls/msync/msync01.c
+++ b/testcases/kernel/syscalls/msync/msync01.c
@@ -206,4 +206,4 @@
 		tst_resm(TWARN|TERRNO, "close failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/msync/msync02.c b/testcases/kernel/syscalls/msync/msync02.c
index 2bb9d02..4339ac6 100644
--- a/testcases/kernel/syscalls/msync/msync02.c
+++ b/testcases/kernel/syscalls/msync/msync02.c
@@ -161,4 +161,4 @@
 		tst_resm(TWARN|TERRNO, "close failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/msync/msync03.c b/testcases/kernel/syscalls/msync/msync03.c
index 91f2dad..b99c446 100644
--- a/testcases/kernel/syscalls/msync/msync03.c
+++ b/testcases/kernel/syscalls/msync/msync03.c
@@ -135,4 +135,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/msync/msync04.c b/testcases/kernel/syscalls/msync/msync04.c
index b36e8ce..a771dc3 100644
--- a/testcases/kernel/syscalls/msync/msync04.c
+++ b/testcases/kernel/syscalls/msync/msync04.c
@@ -155,4 +155,4 @@
 		tst_brkm(TBROK, NULL, "close failed");
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/msync/msync05.c b/testcases/kernel/syscalls/msync/msync05.c
index 0518e3f..faabc84 100644
--- a/testcases/kernel/syscalls/msync/msync05.c
+++ b/testcases/kernel/syscalls/msync/msync05.c
@@ -133,4 +133,4 @@
 {
 	tst_brkm(TCONF, NULL, "test is not available on uClinux");
 }
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/munlockall/munlockall01.c b/testcases/kernel/syscalls/munlockall/munlockall01.c
index 8019107..3a7c70b 100644
--- a/testcases/kernel/syscalls/munlockall/munlockall01.c
+++ b/testcases/kernel/syscalls/munlockall/munlockall01.c
@@ -108,6 +108,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/munlockall/munlockall02.c b/testcases/kernel/syscalls/munlockall/munlockall02.c
index fc6d88a..75af544 100644
--- a/testcases/kernel/syscalls/munlockall/munlockall02.c
+++ b/testcases/kernel/syscalls/munlockall/munlockall02.c
@@ -118,6 +118,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/munmap/munmap01.c b/testcases/kernel/syscalls/munmap/munmap01.c
index 383d067..1b81a77 100644
--- a/testcases/kernel/syscalls/munmap/munmap01.c
+++ b/testcases/kernel/syscalls/munmap/munmap01.c
@@ -274,4 +274,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/munmap/munmap02.c b/testcases/kernel/syscalls/munmap/munmap02.c
index 527d992..b9c84fb 100644
--- a/testcases/kernel/syscalls/munmap/munmap02.c
+++ b/testcases/kernel/syscalls/munmap/munmap02.c
@@ -302,4 +302,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/munmap/munmap03.c b/testcases/kernel/syscalls/munmap/munmap03.c
index 86bdda7..5b32f3b 100644
--- a/testcases/kernel/syscalls/munmap/munmap03.c
+++ b/testcases/kernel/syscalls/munmap/munmap03.c
@@ -249,4 +249,4 @@
 	}
 
 	tst_rmdir();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nanosleep/nanosleep01.c b/testcases/kernel/syscalls/nanosleep/nanosleep01.c
index 4efe49d..4fbf320 100644
--- a/testcases/kernel/syscalls/nanosleep/nanosleep01.c
+++ b/testcases/kernel/syscalls/nanosleep/nanosleep01.c
@@ -177,6 +177,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/nanosleep/nanosleep02.c b/testcases/kernel/syscalls/nanosleep/nanosleep02.c
index 76e4195..ff8f1c7 100644
--- a/testcases/kernel/syscalls/nanosleep/nanosleep02.c
+++ b/testcases/kernel/syscalls/nanosleep/nanosleep02.c
@@ -167,6 +167,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -321,4 +322,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nanosleep/nanosleep03.c b/testcases/kernel/syscalls/nanosleep/nanosleep03.c
index eb62fad..f0f7de9 100644
--- a/testcases/kernel/syscalls/nanosleep/nanosleep03.c
+++ b/testcases/kernel/syscalls/nanosleep/nanosleep03.c
@@ -148,6 +148,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -233,4 +234,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nanosleep/nanosleep04.c b/testcases/kernel/syscalls/nanosleep/nanosleep04.c
index 3df9a28..bb7edcc 100644
--- a/testcases/kernel/syscalls/nanosleep/nanosleep04.c
+++ b/testcases/kernel/syscalls/nanosleep/nanosleep04.c
@@ -186,4 +186,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nice/nice01.c b/testcases/kernel/syscalls/nice/nice01.c
index efccf20..6a9f7d9 100644
--- a/testcases/kernel/syscalls/nice/nice01.c
+++ b/testcases/kernel/syscalls/nice/nice01.c
@@ -141,6 +141,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -177,4 +178,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nice/nice02.c b/testcases/kernel/syscalls/nice/nice02.c
index dbe8e8a..994ab6a 100644
--- a/testcases/kernel/syscalls/nice/nice02.c
+++ b/testcases/kernel/syscalls/nice/nice02.c
@@ -146,6 +146,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -173,4 +174,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nice/nice03.c b/testcases/kernel/syscalls/nice/nice03.c
index fc5409f..3300859 100644
--- a/testcases/kernel/syscalls/nice/nice03.c
+++ b/testcases/kernel/syscalls/nice/nice03.c
@@ -136,6 +136,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -170,4 +171,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nice/nice04.c b/testcases/kernel/syscalls/nice/nice04.c
index 0d450cf..ccc0d85 100644
--- a/testcases/kernel/syscalls/nice/nice04.c
+++ b/testcases/kernel/syscalls/nice/nice04.c
@@ -134,6 +134,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -172,4 +173,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/nice/nice05.c b/testcases/kernel/syscalls/nice/nice05.c
index 297b133..43ed45e 100644
--- a/testcases/kernel/syscalls/nice/nice05.c
+++ b/testcases/kernel/syscalls/nice/nice05.c
@@ -178,6 +178,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/open/open03.c b/testcases/kernel/syscalls/open/open03.c
index c4a7648..aacabdd 100644
--- a/testcases/kernel/syscalls/open/open03.c
+++ b/testcases/kernel/syscalls/open/open03.c
@@ -190,6 +190,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/open/open04.c b/testcases/kernel/syscalls/open/open04.c
index 1c5937f..8e6b398 100644
--- a/testcases/kernel/syscalls/open/open04.c
+++ b/testcases/kernel/syscalls/open/open04.c
@@ -103,6 +103,7 @@
 	close(first);
 	close(fd);
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pause/pause01.c b/testcases/kernel/syscalls/pause/pause01.c
index d353ddb..170f134 100644
--- a/testcases/kernel/syscalls/pause/pause01.c
+++ b/testcases/kernel/syscalls/pause/pause01.c
@@ -184,6 +184,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pause/pause02.c b/testcases/kernel/syscalls/pause/pause02.c
index 2a820cb..45eef90 100644
--- a/testcases/kernel/syscalls/pause/pause02.c
+++ b/testcases/kernel/syscalls/pause/pause02.c
@@ -169,6 +169,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -266,4 +267,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pause/pause03.c b/testcases/kernel/syscalls/pause/pause03.c
index 198f612..80feaf2 100644
--- a/testcases/kernel/syscalls/pause/pause03.c
+++ b/testcases/kernel/syscalls/pause/pause03.c
@@ -175,6 +175,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -238,4 +239,4 @@
 	/* Cleanup the child if still active */
 	kill(cpid, SIGKILL);
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/personality/personality02.c b/testcases/kernel/syscalls/personality/personality02.c
index 3409250..7a16bba 100644
--- a/testcases/kernel/syscalls/personality/personality02.c
+++ b/testcases/kernel/syscalls/personality/personality02.c
@@ -124,6 +124,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pipe/pipe05.c b/testcases/kernel/syscalls/pipe/pipe05.c
index 7cf6ef0..0424399 100644
--- a/testcases/kernel/syscalls/pipe/pipe05.c
+++ b/testcases/kernel/syscalls/pipe/pipe05.c
@@ -112,6 +112,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pipe/pipe06.c b/testcases/kernel/syscalls/pipe/pipe06.c
index 081222d..665d79f 100644
--- a/testcases/kernel/syscalls/pipe/pipe06.c
+++ b/testcases/kernel/syscalls/pipe/pipe06.c
@@ -91,6 +91,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pipe/pipe07.c b/testcases/kernel/syscalls/pipe/pipe07.c
index fdab4de..ebcc9af 100644
--- a/testcases/kernel/syscalls/pipe/pipe07.c
+++ b/testcases/kernel/syscalls/pipe/pipe07.c
@@ -123,6 +123,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pipe/pipe08.c b/testcases/kernel/syscalls/pipe/pipe08.c
index 5998633..3f5ede5 100644
--- a/testcases/kernel/syscalls/pipe/pipe08.c
+++ b/testcases/kernel/syscalls/pipe/pipe08.c
@@ -108,6 +108,7 @@
 		written = write(pipefd[1], wrbuf, length);
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/poll/poll01.c b/testcases/kernel/syscalls/poll/poll01.c
index 6d2b531..dcf54a4 100644
--- a/testcases/kernel/syscalls/poll/poll01.c
+++ b/testcases/kernel/syscalls/poll/poll01.c
@@ -194,6 +194,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -239,4 +240,4 @@
 			 "errno:%d", errno);
 	}
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/prctl/prctl01.c b/testcases/kernel/syscalls/prctl/prctl01.c
index bc8227f..666da12 100644
--- a/testcases/kernel/syscalls/prctl/prctl01.c
+++ b/testcases/kernel/syscalls/prctl/prctl01.c
@@ -152,6 +152,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -178,4 +179,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/prctl/prctl02.c b/testcases/kernel/syscalls/prctl/prctl02.c
index dacd483..65af5d3 100644
--- a/testcases/kernel/syscalls/prctl/prctl02.c
+++ b/testcases/kernel/syscalls/prctl/prctl02.c
@@ -199,4 +199,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pread/pread01.c b/testcases/kernel/syscalls/pread/pread01.c
index decf8dd..cfe6e81 100644
--- a/testcases/kernel/syscalls/pread/pread01.c
+++ b/testcases/kernel/syscalls/pread/pread01.c
@@ -188,6 +188,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
@@ -364,4 +366,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pread/pread02.c b/testcases/kernel/syscalls/pread/pread02.c
index 8bbb861..30ebe2e 100644
--- a/testcases/kernel/syscalls/pread/pread02.c
+++ b/testcases/kernel/syscalls/pread/pread02.c
@@ -313,4 +313,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pread/pread03.c b/testcases/kernel/syscalls/pread/pread03.c
index 3a33ced..ac52f64 100644
--- a/testcases/kernel/syscalls/pread/pread03.c
+++ b/testcases/kernel/syscalls/pread/pread03.c
@@ -106,7 +106,7 @@
 	char *test_desc;	/* test specific error message */
 
 	/* Parse standard options given to run the test. */
-	if ((msg = parse_opts(ac, av, NULL, NULL) != NULL)
+	if ((msg = parse_opts(ac, av, NULL, NULL)) != NULL)
 		tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
 
 	setup();
@@ -148,6 +148,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/pselect/pselect01.c b/testcases/kernel/syscalls/pselect/pselect01.c
index aead552..f4a8898 100644
--- a/testcases/kernel/syscalls/pselect/pselect01.c
+++ b/testcases/kernel/syscalls/pselect/pselect01.c
@@ -156,6 +156,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/ptrace/ptrace01.c b/testcases/kernel/syscalls/ptrace/ptrace01.c
index ced36e9..cbc59b5 100644
--- a/testcases/kernel/syscalls/ptrace/ptrace01.c
+++ b/testcases/kernel/syscalls/ptrace/ptrace01.c
@@ -213,6 +213,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -290,4 +291,4 @@
 {
 
 	got_signal = 1;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ptrace/ptrace02.c b/testcases/kernel/syscalls/ptrace/ptrace02.c
index 58bf138..b79ee0f 100644
--- a/testcases/kernel/syscalls/ptrace/ptrace02.c
+++ b/testcases/kernel/syscalls/ptrace/ptrace02.c
@@ -214,6 +214,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -292,4 +293,4 @@
 {
 
 	got_signal = 1;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ptrace/ptrace03.c b/testcases/kernel/syscalls/ptrace/ptrace03.c
index 7dd3cad..379a71f 100644
--- a/testcases/kernel/syscalls/ptrace/ptrace03.c
+++ b/testcases/kernel/syscalls/ptrace/ptrace03.c
@@ -229,4 +229,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pwrite/pwrite01.c b/testcases/kernel/syscalls/pwrite/pwrite01.c
index 3b14ab8..d09d995 100644
--- a/testcases/kernel/syscalls/pwrite/pwrite01.c
+++ b/testcases/kernel/syscalls/pwrite/pwrite01.c
@@ -201,6 +201,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
@@ -354,4 +356,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pwrite/pwrite02.c b/testcases/kernel/syscalls/pwrite/pwrite02.c
index 5814b02..6c33fd8 100644
--- a/testcases/kernel/syscalls/pwrite/pwrite02.c
+++ b/testcases/kernel/syscalls/pwrite/pwrite02.c
@@ -330,4 +330,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pwrite/pwrite03.c b/testcases/kernel/syscalls/pwrite/pwrite03.c
index daa986d..2826e9a 100644
--- a/testcases/kernel/syscalls/pwrite/pwrite03.c
+++ b/testcases/kernel/syscalls/pwrite/pwrite03.c
@@ -148,6 +148,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
@@ -207,4 +209,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/pwrite/pwrite04.c b/testcases/kernel/syscalls/pwrite/pwrite04.c
index d29a512..082a502 100644
--- a/testcases/kernel/syscalls/pwrite/pwrite04.c
+++ b/testcases/kernel/syscalls/pwrite/pwrite04.c
@@ -215,6 +215,7 @@
 		unlink(fname);
 	}			/* end for */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/read/read01.c b/testcases/kernel/syscalls/read/read01.c
index d36e902..83074ff 100644
--- a/testcases/kernel/syscalls/read/read01.c
+++ b/testcases/kernel/syscalls/read/read01.c
@@ -206,6 +206,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/read/read03.c b/testcases/kernel/syscalls/read/read03.c
index 0608727..af8770a 100644
--- a/testcases/kernel/syscalls/read/read03.c
+++ b/testcases/kernel/syscalls/read/read03.c
@@ -106,6 +106,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/read/read04.c b/testcases/kernel/syscalls/read/read04.c
index c09939f..ae393e0 100644
--- a/testcases/kernel/syscalls/read/read04.c
+++ b/testcases/kernel/syscalls/read/read04.c
@@ -115,6 +115,7 @@
 		 }
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readdir/readdir02.c b/testcases/kernel/syscalls/readdir/readdir02.c
index 77d0593..8f3fa46 100644
--- a/testcases/kernel/syscalls/readdir/readdir02.c
+++ b/testcases/kernel/syscalls/readdir/readdir02.c
@@ -157,6 +157,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readlink/readlink01.c b/testcases/kernel/syscalls/readlink/readlink01.c
index 88453a3..1cd1f60 100644
--- a/testcases/kernel/syscalls/readlink/readlink01.c
+++ b/testcases/kernel/syscalls/readlink/readlink01.c
@@ -151,6 +151,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readlink/readlink02.c b/testcases/kernel/syscalls/readlink/readlink02.c
index b1abbd0..1e8dbf8 100644
--- a/testcases/kernel/syscalls/readlink/readlink02.c
+++ b/testcases/kernel/syscalls/readlink/readlink02.c
@@ -183,6 +183,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readlink/readlink03.c b/testcases/kernel/syscalls/readlink/readlink03.c
index fad48e7..6886fb5 100644
--- a/testcases/kernel/syscalls/readlink/readlink03.c
+++ b/testcases/kernel/syscalls/readlink/readlink03.c
@@ -204,6 +204,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -357,4 +358,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/readlink/readlink04.c b/testcases/kernel/syscalls/readlink/readlink04.c
index cc47dde..77e1cbf 100644
--- a/testcases/kernel/syscalls/readlink/readlink04.c
+++ b/testcases/kernel/syscalls/readlink/readlink04.c
@@ -155,6 +155,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
@@ -285,4 +286,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/readv/readv01.c b/testcases/kernel/syscalls/readv/readv01.c
index 12ed498..1076121 100644
--- a/testcases/kernel/syscalls/readv/readv01.c
+++ b/testcases/kernel/syscalls/readv/readv01.c
@@ -123,6 +123,7 @@
 	}
 	close(fd);
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readv/readv02.c b/testcases/kernel/syscalls/readv/readv02.c
index 282bf28..ed39b94 100644
--- a/testcases/kernel/syscalls/readv/readv02.c
+++ b/testcases/kernel/syscalls/readv/readv02.c
@@ -180,6 +180,7 @@
 	close(fd[0]);
 	close(fd[1]);
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/readv/readv03.c b/testcases/kernel/syscalls/readv/readv03.c
index 7a79f74..1e5f64b 100644
--- a/testcases/kernel/syscalls/readv/readv03.c
+++ b/testcases/kernel/syscalls/readv/readv03.c
@@ -108,6 +108,7 @@
 
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/reboot/reboot01.c b/testcases/kernel/syscalls/reboot/reboot01.c
index efe39fe..12380c8 100644
--- a/testcases/kernel/syscalls/reboot/reboot01.c
+++ b/testcases/kernel/syscalls/reboot/reboot01.c
@@ -152,4 +152,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/reboot/reboot02.c b/testcases/kernel/syscalls/reboot/reboot02.c
index 1187cac..7f69add 100644
--- a/testcases/kernel/syscalls/reboot/reboot02.c
+++ b/testcases/kernel/syscalls/reboot/reboot02.c
@@ -211,4 +211,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/recv/recv01.c b/testcases/kernel/syscalls/recv/recv01.c
index 89463b6..4ca77b5 100644
--- a/testcases/kernel/syscalls/recv/recv01.c
+++ b/testcases/kernel/syscalls/recv/recv01.c
@@ -299,4 +299,4 @@
 				}
 			}
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/recvfrom/recvfrom01.c b/testcases/kernel/syscalls/recvfrom/recvfrom01.c
index df1ddeb..42d5bc3 100644
--- a/testcases/kernel/syscalls/recvfrom/recvfrom01.c
+++ b/testcases/kernel/syscalls/recvfrom/recvfrom01.c
@@ -327,4 +327,4 @@
 				}
 			}
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c b/testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c
index cfca0d9..1f21199 100644
--- a/testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c
+++ b/testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c
@@ -144,6 +144,7 @@
 
 	/* clean up and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c b/testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c
index 4a911d6..fdcda3e 100644
--- a/testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c
+++ b/testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c
@@ -347,4 +347,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/rename/rename02.c b/testcases/kernel/syscalls/rename/rename02.c
index 9a04bbf..48c81fb 100644
--- a/testcases/kernel/syscalls/rename/rename02.c
+++ b/testcases/kernel/syscalls/rename/rename02.c
@@ -172,6 +172,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename04.c b/testcases/kernel/syscalls/rename/rename04.c
index 80713cb..4bd9e2c 100644
--- a/testcases/kernel/syscalls/rename/rename04.c
+++ b/testcases/kernel/syscalls/rename/rename04.c
@@ -136,6 +136,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename05.c b/testcases/kernel/syscalls/rename/rename05.c
index 4d09997..342f3fc 100644
--- a/testcases/kernel/syscalls/rename/rename05.c
+++ b/testcases/kernel/syscalls/rename/rename05.c
@@ -128,6 +128,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename06.c b/testcases/kernel/syscalls/rename/rename06.c
index 837c67e..51d2e02 100644
--- a/testcases/kernel/syscalls/rename/rename06.c
+++ b/testcases/kernel/syscalls/rename/rename06.c
@@ -126,6 +126,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename07.c b/testcases/kernel/syscalls/rename/rename07.c
index 5b4abac..41dce9d 100644
--- a/testcases/kernel/syscalls/rename/rename07.c
+++ b/testcases/kernel/syscalls/rename/rename07.c
@@ -108,6 +108,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename09.c b/testcases/kernel/syscalls/rename/rename09.c
index f4ecad8..1d292e9 100644
--- a/testcases/kernel/syscalls/rename/rename09.c
+++ b/testcases/kernel/syscalls/rename/rename09.c
@@ -237,6 +237,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename12.c b/testcases/kernel/syscalls/rename/rename12.c
index a6db247..e7f4287 100644
--- a/testcases/kernel/syscalls/rename/rename12.c
+++ b/testcases/kernel/syscalls/rename/rename12.c
@@ -177,6 +177,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rename/rename13.c b/testcases/kernel/syscalls/rename/rename13.c
index 33f524a..ec002e9 100644
--- a/testcases/kernel/syscalls/rename/rename13.c
+++ b/testcases/kernel/syscalls/rename/rename13.c
@@ -158,6 +158,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rmdir/rmdir01.c b/testcases/kernel/syscalls/rmdir/rmdir01.c
index 8d7887a..f7f684e 100644
--- a/testcases/kernel/syscalls/rmdir/rmdir01.c
+++ b/testcases/kernel/syscalls/rmdir/rmdir01.c
@@ -139,6 +139,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rmdir/rmdir03.c b/testcases/kernel/syscalls/rmdir/rmdir03.c
index bf4f799..68bf07d 100644
--- a/testcases/kernel/syscalls/rmdir/rmdir03.c
+++ b/testcases/kernel/syscalls/rmdir/rmdir03.c
@@ -233,6 +233,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rmdir/rmdir04.c b/testcases/kernel/syscalls/rmdir/rmdir04.c
index 48e2378..f920da5 100644
--- a/testcases/kernel/syscalls/rmdir/rmdir04.c
+++ b/testcases/kernel/syscalls/rmdir/rmdir04.c
@@ -187,6 +187,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rmdir/rmdir05.c b/testcases/kernel/syscalls/rmdir/rmdir05.c
index 9128a98..18a2f45 100644
--- a/testcases/kernel/syscalls/rmdir/rmdir05.c
+++ b/testcases/kernel/syscalls/rmdir/rmdir05.c
@@ -420,6 +420,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c b/testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c
index edff0f9..da3c403 100644
--- a/testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c
+++ b/testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c
@@ -99,4 +99,4 @@
 		cleanup();
 	}
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sbrk/sbrk01.c b/testcases/kernel/syscalls/sbrk/sbrk01.c
index f9b25fe..183f55c 100644
--- a/testcases/kernel/syscalls/sbrk/sbrk01.c
+++ b/testcases/kernel/syscalls/sbrk/sbrk01.c
@@ -218,6 +218,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
index 1f9a105..a9edf7d 100644
--- a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
+++ b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max01.c
@@ -149,4 +149,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max02.c b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max02.c
index 604c451..e737efb 100644
--- a/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max02.c
+++ b/testcases/kernel/syscalls/sched_get_priority_max/sched_get_priority_max02.c
@@ -110,6 +110,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -136,4 +137,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min01.c b/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min01.c
index f0e8d60..ce2c436 100644
--- a/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min01.c
+++ b/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min01.c
@@ -149,4 +149,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min02.c b/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min02.c
index 79c8de2..5f5af7b 100644
--- a/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min02.c
+++ b/testcases/kernel/syscalls/sched_get_priority_min/sched_get_priority_min02.c
@@ -110,6 +110,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -136,4 +137,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_getparam/sched_getparam01.c b/testcases/kernel/syscalls/sched_getparam/sched_getparam01.c
index 5828183..f9ef7b3 100644
--- a/testcases/kernel/syscalls/sched_getparam/sched_getparam01.c
+++ b/testcases/kernel/syscalls/sched_getparam/sched_getparam01.c
@@ -118,6 +118,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler02.c b/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler02.c
index 7f0f51f..17d0baa 100644
--- a/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler02.c
+++ b/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler02.c
@@ -91,6 +91,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c
index 029e950..bf6b7a3 100644
--- a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c
+++ b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval01.c
@@ -111,6 +111,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -146,4 +147,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
index e403ede..72af985 100644
--- a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
+++ b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval02.c
@@ -116,6 +116,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -151,4 +152,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval03.c b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval03.c
index 351d1a0..99b05c5 100644
--- a/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval03.c
+++ b/testcases/kernel/syscalls/sched_rr_get_interval/sched_rr_get_interval03.c
@@ -177,4 +177,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_setparam/sched_setparam01.c b/testcases/kernel/syscalls/sched_setparam/sched_setparam01.c
index 67339d7..b293ba6 100644
--- a/testcases/kernel/syscalls/sched_setparam/sched_setparam01.c
+++ b/testcases/kernel/syscalls/sched_setparam/sched_setparam01.c
@@ -134,4 +134,4 @@
 	 * print errno log if that option was specified.
 	 */
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c b/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
index 9451bac..468dae6 100644
--- a/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
+++ b/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
@@ -201,4 +201,4 @@
 
 	tst_resm(TWARN, "sched_getparam() failed");
 	return 0;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_setparam/sched_setparam05.c b/testcases/kernel/syscalls/sched_setparam/sched_setparam05.c
index d8399ef..a8af2ae 100644
--- a/testcases/kernel/syscalls/sched_setparam/sched_setparam05.c
+++ b/testcases/kernel/syscalls/sched_setparam/sched_setparam05.c
@@ -190,4 +190,4 @@
 	 * print errno log if that option was specified.
 	 */
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sched_setscheduler/sched_setscheduler02.c b/testcases/kernel/syscalls/sched_setscheduler/sched_setscheduler02.c
index 2955a1b..5943672 100644
--- a/testcases/kernel/syscalls/sched_setscheduler/sched_setscheduler02.c
+++ b/testcases/kernel/syscalls/sched_setscheduler/sched_setscheduler02.c
@@ -134,6 +134,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sched_yield/sched_yield01.c b/testcases/kernel/syscalls/sched_yield/sched_yield01.c
index d6e58c7..a9be246 100644
--- a/testcases/kernel/syscalls/sched_yield/sched_yield01.c
+++ b/testcases/kernel/syscalls/sched_yield/sched_yield01.c
@@ -81,6 +81,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/select/select01.c b/testcases/kernel/syscalls/select/select01.c
index 9d284bb..a1db8d9 100644
--- a/testcases/kernel/syscalls/select/select01.c
+++ b/testcases/kernel/syscalls/select/select01.c
@@ -204,6 +204,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/select/select02.c b/testcases/kernel/syscalls/select/select02.c
index 7fee899..f6659ee 100644
--- a/testcases/kernel/syscalls/select/select02.c
+++ b/testcases/kernel/syscalls/select/select02.c
@@ -205,6 +205,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/select/select03.c b/testcases/kernel/syscalls/select/select03.c
index 9c57e80..da8efda 100644
--- a/testcases/kernel/syscalls/select/select03.c
+++ b/testcases/kernel/syscalls/select/select03.c
@@ -209,6 +209,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/send/send01.c b/testcases/kernel/syscalls/send/send01.c
index 2f9ef4f..be311b8 100644
--- a/testcases/kernel/syscalls/send/send01.c
+++ b/testcases/kernel/syscalls/send/send01.c
@@ -306,4 +306,4 @@
 	if (shutdown(s, 1) < 0)
 		tst_brkm(TBROK|TERRNO, cleanup, "socket setup failed connect "
 			 "test %d", testno);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sendfile/sendfile07.c b/testcases/kernel/syscalls/sendfile/sendfile07.c
index 403a553..dc269d4 100644
--- a/testcases/kernel/syscalls/sendfile/sendfile07.c
+++ b/testcases/kernel/syscalls/sendfile/sendfile07.c
@@ -111,6 +111,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sendto/sendto01.c b/testcases/kernel/syscalls/sendto/sendto01.c
index 5573e02..ad64c70 100644
--- a/testcases/kernel/syscalls/sendto/sendto01.c
+++ b/testcases/kernel/syscalls/sendto/sendto01.c
@@ -335,4 +335,4 @@
 	s = socket(tdat[testno].domain, tdat[testno].type, tdat[testno].proto);
 	if (s < 0)
 		tst_brkm(TBROK|TERRNO, cleanup, "socket setup failed");
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c b/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c
index 49ef1cc..76e927b 100644
--- a/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c
+++ b/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c
@@ -152,4 +152,4 @@
 int main(void) {
 	tst_brkm(TCONF, NULL, "set_thread_area isn't available for this architecture");
 }
-#endif
+#endif
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/setdomainname/setdomainname01.c b/testcases/kernel/syscalls/setdomainname/setdomainname01.c
index a2cc188..e65f806 100644
--- a/testcases/kernel/syscalls/setdomainname/setdomainname01.c
+++ b/testcases/kernel/syscalls/setdomainname/setdomainname01.c
@@ -118,6 +118,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setdomainname/setdomainname03.c b/testcases/kernel/syscalls/setdomainname/setdomainname03.c
index 12ee51b..85943c0 100644
--- a/testcases/kernel/syscalls/setdomainname/setdomainname03.c
+++ b/testcases/kernel/syscalls/setdomainname/setdomainname03.c
@@ -137,6 +137,7 @@
 	 * in the setup().
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setfsgid/setfsgid01.c b/testcases/kernel/syscalls/setfsgid/setfsgid01.c
index cf5f2ef..dbe55d1 100644
--- a/testcases/kernel/syscalls/setfsgid/setfsgid01.c
+++ b/testcases/kernel/syscalls/setfsgid/setfsgid01.c
@@ -101,6 +101,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setfsuid/setfsuid01.c b/testcases/kernel/syscalls/setfsuid/setfsuid01.c
index a946ec2..366b9d0 100644
--- a/testcases/kernel/syscalls/setfsuid/setfsuid01.c
+++ b/testcases/kernel/syscalls/setfsuid/setfsuid01.c
@@ -103,6 +103,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setfsuid/setfsuid02.c b/testcases/kernel/syscalls/setfsuid/setfsuid02.c
index f42e465..284bb9d 100644
--- a/testcases/kernel/syscalls/setfsuid/setfsuid02.c
+++ b/testcases/kernel/syscalls/setfsuid/setfsuid02.c
@@ -111,6 +111,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
  }
 
diff --git a/testcases/kernel/syscalls/setfsuid/setfsuid03.c b/testcases/kernel/syscalls/setfsuid/setfsuid03.c
index b38e0a7..90ae9fa 100644
--- a/testcases/kernel/syscalls/setfsuid/setfsuid03.c
+++ b/testcases/kernel/syscalls/setfsuid/setfsuid03.c
@@ -114,6 +114,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
  }
 
diff --git a/testcases/kernel/syscalls/setfsuid/setfsuid04.c b/testcases/kernel/syscalls/setfsuid/setfsuid04.c
index 5361420..9129892 100644
--- a/testcases/kernel/syscalls/setfsuid/setfsuid04.c
+++ b/testcases/kernel/syscalls/setfsuid/setfsuid04.c
@@ -102,6 +102,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setgid/setgid01.c b/testcases/kernel/syscalls/setgid/setgid01.c
index a93efd7..d71e2d4 100644
--- a/testcases/kernel/syscalls/setgid/setgid01.c
+++ b/testcases/kernel/syscalls/setgid/setgid01.c
@@ -179,6 +179,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setgid/setgid02.c b/testcases/kernel/syscalls/setgid/setgid02.c
index 3f7a025..aeb61ff 100644
--- a/testcases/kernel/syscalls/setgid/setgid02.c
+++ b/testcases/kernel/syscalls/setgid/setgid02.c
@@ -112,6 +112,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setgid/setgid03.c b/testcases/kernel/syscalls/setgid/setgid03.c
index 61891d5..dc8c7f1 100644
--- a/testcases/kernel/syscalls/setgid/setgid03.c
+++ b/testcases/kernel/syscalls/setgid/setgid03.c
@@ -98,6 +98,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setgroups/setgroups01.c b/testcases/kernel/syscalls/setgroups/setgroups01.c
index 3d72604..111dffe 100644
--- a/testcases/kernel/syscalls/setgroups/setgroups01.c
+++ b/testcases/kernel/syscalls/setgroups/setgroups01.c
@@ -184,6 +184,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setgroups/setgroups02.c b/testcases/kernel/syscalls/setgroups/setgroups02.c
index 670fc9c..57fc41c 100644
--- a/testcases/kernel/syscalls/setgroups/setgroups02.c
+++ b/testcases/kernel/syscalls/setgroups/setgroups02.c
@@ -149,6 +149,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
@@ -195,4 +197,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/setgroups/setgroups03.c b/testcases/kernel/syscalls/setgroups/setgroups03.c
index 76784aa..2c0f1c1 100644
--- a/testcases/kernel/syscalls/setgroups/setgroups03.c
+++ b/testcases/kernel/syscalls/setgroups/setgroups03.c
@@ -237,4 +237,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/setgroups/setgroups04.c b/testcases/kernel/syscalls/setgroups/setgroups04.c
index 3814d16..8fc1bdb 100644
--- a/testcases/kernel/syscalls/setgroups/setgroups04.c
+++ b/testcases/kernel/syscalls/setgroups/setgroups04.c
@@ -136,6 +136,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
@@ -176,4 +178,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sethostname/sethostname01.c b/testcases/kernel/syscalls/sethostname/sethostname01.c
index 2a1c4c1..bba788a 100644
--- a/testcases/kernel/syscalls/sethostname/sethostname01.c
+++ b/testcases/kernel/syscalls/sethostname/sethostname01.c
@@ -120,6 +120,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sethostname/sethostname03.c b/testcases/kernel/syscalls/sethostname/sethostname03.c
index 69ab793..e9b3525 100644
--- a/testcases/kernel/syscalls/sethostname/sethostname03.c
+++ b/testcases/kernel/syscalls/sethostname/sethostname03.c
@@ -125,6 +125,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setitimer/setitimer01.c b/testcases/kernel/syscalls/setitimer/setitimer01.c
index 23c353b..9ea390a 100644
--- a/testcases/kernel/syscalls/setitimer/setitimer01.c
+++ b/testcases/kernel/syscalls/setitimer/setitimer01.c
@@ -146,6 +146,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setitimer/setitimer02.c b/testcases/kernel/syscalls/setitimer/setitimer02.c
index 647fdca..47cd9a9 100644
--- a/testcases/kernel/syscalls/setitimer/setitimer02.c
+++ b/testcases/kernel/syscalls/setitimer/setitimer02.c
@@ -137,6 +137,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setitimer/setitimer03.c b/testcases/kernel/syscalls/setitimer/setitimer03.c
index 8193e79..5c1fe7a 100644
--- a/testcases/kernel/syscalls/setitimer/setitimer03.c
+++ b/testcases/kernel/syscalls/setitimer/setitimer03.c
@@ -146,6 +146,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpgid/setpgid01.c b/testcases/kernel/syscalls/setpgid/setpgid01.c
index db3ed2d..f1cbae1 100644
--- a/testcases/kernel/syscalls/setpgid/setpgid01.c
+++ b/testcases/kernel/syscalls/setpgid/setpgid01.c
@@ -178,6 +178,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpgid/setpgid03.c b/testcases/kernel/syscalls/setpgid/setpgid03.c
index b3d696a..a894389 100644
--- a/testcases/kernel/syscalls/setpgid/setpgid03.c
+++ b/testcases/kernel/syscalls/setpgid/setpgid03.c
@@ -157,6 +157,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpgrp/setpgrp01.c b/testcases/kernel/syscalls/setpgrp/setpgrp01.c
index b45e2b8..4654ae8 100644
--- a/testcases/kernel/syscalls/setpgrp/setpgrp01.c
+++ b/testcases/kernel/syscalls/setpgrp/setpgrp01.c
@@ -184,6 +184,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpriority/setpriority01.c b/testcases/kernel/syscalls/setpriority/setpriority01.c
index 496941d..04ae348 100644
--- a/testcases/kernel/syscalls/setpriority/setpriority01.c
+++ b/testcases/kernel/syscalls/setpriority/setpriority01.c
@@ -133,6 +133,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpriority/setpriority02.c b/testcases/kernel/syscalls/setpriority/setpriority02.c
index b83c8f9..c8732a8 100644
--- a/testcases/kernel/syscalls/setpriority/setpriority02.c
+++ b/testcases/kernel/syscalls/setpriority/setpriority02.c
@@ -118,6 +118,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpriority/setpriority03.c b/testcases/kernel/syscalls/setpriority/setpriority03.c
index fcecead..cd43c59 100644
--- a/testcases/kernel/syscalls/setpriority/setpriority03.c
+++ b/testcases/kernel/syscalls/setpriority/setpriority03.c
@@ -117,6 +117,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setpriority/setpriority05.c b/testcases/kernel/syscalls/setpriority/setpriority05.c
index a533d64..136a7f2 100644
--- a/testcases/kernel/syscalls/setpriority/setpriority05.c
+++ b/testcases/kernel/syscalls/setpriority/setpriority05.c
@@ -118,6 +118,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setregid/setregid01.c b/testcases/kernel/syscalls/setregid/setregid01.c
index 50df935..ee075a2 100644
--- a/testcases/kernel/syscalls/setregid/setregid01.c
+++ b/testcases/kernel/syscalls/setregid/setregid01.c
@@ -262,6 +262,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setregid/setregid02.c b/testcases/kernel/syscalls/setregid/setregid02.c
index 4e50bbc..8123264 100644
--- a/testcases/kernel/syscalls/setregid/setregid02.c
+++ b/testcases/kernel/syscalls/setregid/setregid02.c
@@ -184,6 +184,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setregid/setregid03.c b/testcases/kernel/syscalls/setregid/setregid03.c
index e43eecb..4383b9f 100644
--- a/testcases/kernel/syscalls/setregid/setregid03.c
+++ b/testcases/kernel/syscalls/setregid/setregid03.c
@@ -215,6 +215,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setregid/setregid04.c b/testcases/kernel/syscalls/setregid/setregid04.c
index 0b5368b..3feb62a 100644
--- a/testcases/kernel/syscalls/setregid/setregid04.c
+++ b/testcases/kernel/syscalls/setregid/setregid04.c
@@ -170,6 +170,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setresuid/setresuid04.c b/testcases/kernel/syscalls/setresuid/setresuid04.c
index 7ec8990..13c7a8f 100644
--- a/testcases/kernel/syscalls/setresuid/setresuid04.c
+++ b/testcases/kernel/syscalls/setresuid/setresuid04.c
@@ -100,6 +100,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setreuid/setreuid01.c b/testcases/kernel/syscalls/setreuid/setreuid01.c
index d5b550f..0a4e7e4 100644
--- a/testcases/kernel/syscalls/setreuid/setreuid01.c
+++ b/testcases/kernel/syscalls/setreuid/setreuid01.c
@@ -292,6 +292,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setreuid/setreuid06.c b/testcases/kernel/syscalls/setreuid/setreuid06.c
index 484aa7a..f79906a 100644
--- a/testcases/kernel/syscalls/setreuid/setreuid06.c
+++ b/testcases/kernel/syscalls/setreuid/setreuid06.c
@@ -101,6 +101,8 @@
 
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setreuid/setreuid07.c b/testcases/kernel/syscalls/setreuid/setreuid07.c
index 59bf9a5..19025cd 100644
--- a/testcases/kernel/syscalls/setreuid/setreuid07.c
+++ b/testcases/kernel/syscalls/setreuid/setreuid07.c
@@ -99,6 +99,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setrlimit/setrlimit01.c b/testcases/kernel/syscalls/setrlimit/setrlimit01.c
index 5040bde..38b22ae 100644
--- a/testcases/kernel/syscalls/setrlimit/setrlimit01.c
+++ b/testcases/kernel/syscalls/setrlimit/setrlimit01.c
@@ -102,6 +102,7 @@
 		test4();
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setrlimit/setrlimit03.c b/testcases/kernel/syscalls/setrlimit/setrlimit03.c
index d8a292b..fdc758e 100644
--- a/testcases/kernel/syscalls/setrlimit/setrlimit03.c
+++ b/testcases/kernel/syscalls/setrlimit/setrlimit03.c
@@ -102,6 +102,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setsid/setsid01.c b/testcases/kernel/syscalls/setsid/setsid01.c
index bb41824..a5ec8a9 100644
--- a/testcases/kernel/syscalls/setsid/setsid01.c
+++ b/testcases/kernel/syscalls/setsid/setsid01.c
@@ -145,6 +145,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setuid/setuid01.c b/testcases/kernel/syscalls/setuid/setuid01.c
index 15aec88..6fcda59 100644
--- a/testcases/kernel/syscalls/setuid/setuid01.c
+++ b/testcases/kernel/syscalls/setuid/setuid01.c
@@ -184,6 +184,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setuid/setuid02.c b/testcases/kernel/syscalls/setuid/setuid02.c
index be73cf2..8cacc68 100644
--- a/testcases/kernel/syscalls/setuid/setuid02.c
+++ b/testcases/kernel/syscalls/setuid/setuid02.c
@@ -187,6 +187,8 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setuid/setuid03.c b/testcases/kernel/syscalls/setuid/setuid03.c
index 02ee94f..fca742c 100644
--- a/testcases/kernel/syscalls/setuid/setuid03.c
+++ b/testcases/kernel/syscalls/setuid/setuid03.c
@@ -98,6 +98,8 @@
 		}
 	}
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/setuid/setuid04.c b/testcases/kernel/syscalls/setuid/setuid04.c
index 8f812a9..1bad5f2 100644
--- a/testcases/kernel/syscalls/setuid/setuid04.c
+++ b/testcases/kernel/syscalls/setuid/setuid04.c
@@ -100,6 +100,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sigaction/sigaction02.c b/testcases/kernel/syscalls/sigaction/sigaction02.c
index ac74fc1..65e7703 100644
--- a/testcases/kernel/syscalls/sigaction/sigaction02.c
+++ b/testcases/kernel/syscalls/sigaction/sigaction02.c
@@ -202,4 +202,4 @@
 
 	tst_exit();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sighold/sighold02.c b/testcases/kernel/syscalls/sighold/sighold02.c
index 43be15c..1ef4927 100644
--- a/testcases/kernel/syscalls/sighold/sighold02.c
+++ b/testcases/kernel/syscalls/sighold/sighold02.c
@@ -307,6 +307,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sigpending/sigpending02.c b/testcases/kernel/syscalls/sigpending/sigpending02.c
index f3e3756..5e28f7a 100644
--- a/testcases/kernel/syscalls/sigpending/sigpending02.c
+++ b/testcases/kernel/syscalls/sigpending/sigpending02.c
@@ -125,6 +125,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sigrelse/sigrelse01.c b/testcases/kernel/syscalls/sigrelse/sigrelse01.c
index 7622eda..0d0e12b 100644
--- a/testcases/kernel/syscalls/sigrelse/sigrelse01.c
+++ b/testcases/kernel/syscalls/sigrelse/sigrelse01.c
@@ -240,6 +240,7 @@
 	 * cleanup and exit
 	 */
 	cleanup();
+	tst_exit();
 
 }				/* end main */
 
diff --git a/testcases/kernel/syscalls/sigsuspend/sigsuspend01.c b/testcases/kernel/syscalls/sigsuspend/sigsuspend01.c
index de8a1ac..05c8cc5 100644
--- a/testcases/kernel/syscalls/sigsuspend/sigsuspend01.c
+++ b/testcases/kernel/syscalls/sigsuspend/sigsuspend01.c
@@ -161,6 +161,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c b/testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c
index be607f9..c0e0241 100644
--- a/testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c
+++ b/testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c
@@ -434,4 +434,4 @@
 
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/stat/stat01.c b/testcases/kernel/syscalls/stat/stat01.c
index ec8b87c..b5f641d 100644
--- a/testcases/kernel/syscalls/stat/stat01.c
+++ b/testcases/kernel/syscalls/stat/stat01.c
@@ -157,6 +157,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/stat/stat02.c b/testcases/kernel/syscalls/stat/stat02.c
index fb39e32..60675c6 100644
--- a/testcases/kernel/syscalls/stat/stat02.c
+++ b/testcases/kernel/syscalls/stat/stat02.c
@@ -158,6 +158,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/stat/stat03.c b/testcases/kernel/syscalls/stat/stat03.c
index 8470622..b81c3ce 100644
--- a/testcases/kernel/syscalls/stat/stat03.c
+++ b/testcases/kernel/syscalls/stat/stat03.c
@@ -211,6 +211,8 @@
 	 * in the setup().
 	 */
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/stat/stat05.c b/testcases/kernel/syscalls/stat/stat05.c
index 45e27ea..1cef277 100644
--- a/testcases/kernel/syscalls/stat/stat05.c
+++ b/testcases/kernel/syscalls/stat/stat05.c
@@ -168,6 +168,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/statfs/statfs01.c b/testcases/kernel/syscalls/statfs/statfs01.c
index 4a76283..77ddad7 100644
--- a/testcases/kernel/syscalls/statfs/statfs01.c
+++ b/testcases/kernel/syscalls/statfs/statfs01.c
@@ -174,6 +174,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/statfs/statfs02.c b/testcases/kernel/syscalls/statfs/statfs02.c
index bcfb70a..be66118 100644
--- a/testcases/kernel/syscalls/statfs/statfs02.c
+++ b/testcases/kernel/syscalls/statfs/statfs02.c
@@ -154,6 +154,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/statfs/statfs03.c b/testcases/kernel/syscalls/statfs/statfs03.c
index d60316b..0ca25d0 100644
--- a/testcases/kernel/syscalls/statfs/statfs03.c
+++ b/testcases/kernel/syscalls/statfs/statfs03.c
@@ -112,7 +112,7 @@
 	}
 
 	cleanup();
-
+	tst_exit();
 }
 
 /*
@@ -139,9 +139,8 @@
 		tst_resm(TFAIL, "creat(2) FAILED to creat temp file");
 	} else {
 		sprintf(path, "%s/%s", fname, fname);
-		if ((fileHandle = creat(path, 0444)) == -1) {
-			tst_brkm(TFAIL|TERRNO, "creat (2) FAILED to creat temp file");
-		}
+		if ((fileHandle = creat(path, 0444)) == -1)
+			tst_brkm(TFAIL|TERRNO, cleanup, "creat failed");
 	}
 
 	ltpuser = getpwnam(nobody_uid);
@@ -176,4 +175,4 @@
 	/* delete the test directory created in setup() */
 	tst_rmdir();
 
-}
\ No newline at end of file
+}
diff --git a/testcases/kernel/syscalls/stime/stime01.c b/testcases/kernel/syscalls/stime/stime01.c
index 9b34657..c4e897b 100644
--- a/testcases/kernel/syscalls/stime/stime01.c
+++ b/testcases/kernel/syscalls/stime/stime01.c
@@ -190,6 +190,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/stime/stime02.c b/testcases/kernel/syscalls/stime/stime02.c
index c10d499..74aa2b2 100644
--- a/testcases/kernel/syscalls/stime/stime02.c
+++ b/testcases/kernel/syscalls/stime/stime02.c
@@ -135,6 +135,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/swapoff/swapoff01.c b/testcases/kernel/syscalls/swapoff/swapoff01.c
index 3a115eb..570e252 100644
--- a/testcases/kernel/syscalls/swapoff/swapoff01.c
+++ b/testcases/kernel/syscalls/swapoff/swapoff01.c
@@ -129,6 +129,7 @@
 
 	/*Clean up and exit */
 	cleanup();
+	tst_exit();
 
 }
 
@@ -190,4 +191,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/swapoff/swapoff02.c b/testcases/kernel/syscalls/swapoff/swapoff02.c
index 23daa16..df96cc8 100644
--- a/testcases/kernel/syscalls/swapoff/swapoff02.c
+++ b/testcases/kernel/syscalls/swapoff/swapoff02.c
@@ -302,4 +302,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/swapon/swapon01.c b/testcases/kernel/syscalls/swapon/swapon01.c
index 0674e4e..c5932b6 100644
--- a/testcases/kernel/syscalls/swapon/swapon01.c
+++ b/testcases/kernel/syscalls/swapon/swapon01.c
@@ -126,6 +126,7 @@
 	}			/*End for TEST_LOOPING */
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/symlink/symlink01.c b/testcases/kernel/syscalls/symlink/symlink01.c
index bb1601d..a3d6a61 100644
--- a/testcases/kernel/syscalls/symlink/symlink01.c
+++ b/testcases/kernel/syscalls/symlink/symlink01.c
@@ -519,6 +519,7 @@
 	 * End appropriately
 	 */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/symlink/symlink02.c b/testcases/kernel/syscalls/symlink/symlink02.c
index 63ec844..9c90f9b 100644
--- a/testcases/kernel/syscalls/symlink/symlink02.c
+++ b/testcases/kernel/syscalls/symlink/symlink02.c
@@ -186,6 +186,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/symlink/symlink03.c b/testcases/kernel/syscalls/symlink/symlink03.c
index a4a1f7c..3a2fa9c 100644
--- a/testcases/kernel/syscalls/symlink/symlink03.c
+++ b/testcases/kernel/syscalls/symlink/symlink03.c
@@ -220,6 +220,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sync/sync01.c b/testcases/kernel/syscalls/sync/sync01.c
index 6ffd4c1..c9e4f0b 100644
--- a/testcases/kernel/syscalls/sync/sync01.c
+++ b/testcases/kernel/syscalls/sync/sync01.c
@@ -175,6 +175,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sync/sync02.c b/testcases/kernel/syscalls/sync/sync02.c
index c5701d0..24cb6bc 100644
--- a/testcases/kernel/syscalls/sync/sync02.c
+++ b/testcases/kernel/syscalls/sync/sync02.c
@@ -219,4 +219,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/syscall/syscall01.c b/testcases/kernel/syscalls/syscall/syscall01.c
index 62d2eec..c466acc 100644
--- a/testcases/kernel/syscalls/syscall/syscall01.c
+++ b/testcases/kernel/syscalls/syscall/syscall01.c
@@ -154,6 +154,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 	anyfail();		/* THIS CALL DOES NOT RETURN - EXITS!!  */
 
diff --git a/testcases/kernel/syscalls/sysctl/sysctl01.c b/testcases/kernel/syscalls/sysctl/sysctl01.c
index 23a9c56..870942b 100644
--- a/testcases/kernel/syscalls/sysctl/sysctl01.c
+++ b/testcases/kernel/syscalls/sysctl/sysctl01.c
@@ -187,4 +187,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sysctl/sysctl03.c b/testcases/kernel/syscalls/sysctl/sysctl03.c
index 636839c..18dd81a 100644
--- a/testcases/kernel/syscalls/sysctl/sysctl03.c
+++ b/testcases/kernel/syscalls/sysctl/sysctl03.c
@@ -219,4 +219,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/sysfs/sysfs01.c b/testcases/kernel/syscalls/sysfs/sysfs01.c
index d8dcade..311bf43 100644
--- a/testcases/kernel/syscalls/sysfs/sysfs01.c
+++ b/testcases/kernel/syscalls/sysfs/sysfs01.c
@@ -114,6 +114,7 @@
 
 	/*Clean up and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sysfs/sysfs03.c b/testcases/kernel/syscalls/sysfs/sysfs03.c
index 0664f39..5849bd5 100644
--- a/testcases/kernel/syscalls/sysfs/sysfs03.c
+++ b/testcases/kernel/syscalls/sysfs/sysfs03.c
@@ -112,6 +112,7 @@
 
 	/*Clean up and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/sysfs/sysfs04.c b/testcases/kernel/syscalls/sysfs/sysfs04.c
index a44ea1f..4432215 100644
--- a/testcases/kernel/syscalls/sysfs/sysfs04.c
+++ b/testcases/kernel/syscalls/sysfs/sysfs04.c
@@ -118,6 +118,7 @@
 
 	/*Clean up and exit */
 	cleanup();
+	tst_exit();
 
 }				/*End of main */
 
diff --git a/testcases/kernel/syscalls/syslog/syslogtst.c b/testcases/kernel/syscalls/syslog/syslogtst.c
index 262618a..a229688 100644
--- a/testcases/kernel/syscalls/syslog/syslogtst.c
+++ b/testcases/kernel/syscalls/syslog/syslogtst.c
@@ -343,4 +343,4 @@
 	}
 
 	exit(signal);
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/time/time01.c b/testcases/kernel/syscalls/time/time01.c
index ffff572..66c8137 100644
--- a/testcases/kernel/syscalls/time/time01.c
+++ b/testcases/kernel/syscalls/time/time01.c
@@ -161,6 +161,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/time/time02.c b/testcases/kernel/syscalls/time/time02.c
index 3d7f7e9..007cc19 100644
--- a/testcases/kernel/syscalls/time/time02.c
+++ b/testcases/kernel/syscalls/time/time02.c
@@ -141,6 +141,7 @@
 
 	/* cleanup and exit */
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
index b6b09ad..9b245c2 100644
--- a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
+++ b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
@@ -200,4 +200,4 @@
 RETURN VALUE
        If the timer_getoverrun() function succeeds, it shall return the timer
        expiration overrun count as explained above.
-*/
+*/
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/times/times01.c b/testcases/kernel/syscalls/times/times01.c
index 83af4e4..b7e91dd 100644
--- a/testcases/kernel/syscalls/times/times01.c
+++ b/testcases/kernel/syscalls/times/times01.c
@@ -169,4 +169,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/times/times03.c b/testcases/kernel/syscalls/times/times03.c
index 3983585..4e8e902 100644
--- a/testcases/kernel/syscalls/times/times03.c
+++ b/testcases/kernel/syscalls/times/times03.c
@@ -267,4 +267,4 @@
 	 */
 	TEST_CLEANUP;
 
- }
+ }
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/tkill/tkill01.c b/testcases/kernel/syscalls/tkill/tkill01.c
index cf11602..d86ab29 100644
--- a/testcases/kernel/syscalls/tkill/tkill01.c
+++ b/testcases/kernel/syscalls/tkill/tkill01.c
@@ -109,4 +109,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/tkill/tkill02.c b/testcases/kernel/syscalls/tkill/tkill02.c
index 2f11115..fd38a84 100644
--- a/testcases/kernel/syscalls/tkill/tkill02.c
+++ b/testcases/kernel/syscalls/tkill/tkill02.c
@@ -143,4 +143,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/truncate/truncate03.c b/testcases/kernel/syscalls/truncate/truncate03.c
index b759f4b..d912f77 100644
--- a/testcases/kernel/syscalls/truncate/truncate03.c
+++ b/testcases/kernel/syscalls/truncate/truncate03.c
@@ -207,6 +207,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/truncate/truncate04.c b/testcases/kernel/syscalls/truncate/truncate04.c
index 86c6acb..b053224 100644
--- a/testcases/kernel/syscalls/truncate/truncate04.c
+++ b/testcases/kernel/syscalls/truncate/truncate04.c
@@ -148,6 +148,8 @@
 	}
 
 	cleanup();
+	tst_exit();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/umask/umask01.c b/testcases/kernel/syscalls/umask/umask01.c
index 2fe5c0a..f2ee3ed 100644
--- a/testcases/kernel/syscalls/umask/umask01.c
+++ b/testcases/kernel/syscalls/umask/umask01.c
@@ -171,4 +171,4 @@
 void cleanup()
 {
 	TEST_CLEANUP;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/umask/umask03.c b/testcases/kernel/syscalls/umask/umask03.c
index 680976c..143d1f3 100644
--- a/testcases/kernel/syscalls/umask/umask03.c
+++ b/testcases/kernel/syscalls/umask/umask03.c
@@ -161,4 +161,4 @@
 	 * exit with return code appropriate for results
 	 */
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/uname/uname01.c b/testcases/kernel/syscalls/uname/uname01.c
index c9bb951..97839e3 100644
--- a/testcases/kernel/syscalls/uname/uname01.c
+++ b/testcases/kernel/syscalls/uname/uname01.c
@@ -170,4 +170,4 @@
 {
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/uname/uname02.c b/testcases/kernel/syscalls/uname/uname02.c
index c8e6222..bc159e0 100644
--- a/testcases/kernel/syscalls/uname/uname02.c
+++ b/testcases/kernel/syscalls/uname/uname02.c
@@ -129,4 +129,3 @@
 	tst_resm(TCONF, NULL, "test is not available on uClinux");
 }
 #endif /* if !defined(UCLINUX) */
-
diff --git a/testcases/kernel/syscalls/unlink/unlink05.c b/testcases/kernel/syscalls/unlink/unlink05.c
index c99b0e5..f06e71f 100644
--- a/testcases/kernel/syscalls/unlink/unlink05.c
+++ b/testcases/kernel/syscalls/unlink/unlink05.c
@@ -183,6 +183,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/unlink/unlink06.c b/testcases/kernel/syscalls/unlink/unlink06.c
index 89deaae..c75f3a1 100644
--- a/testcases/kernel/syscalls/unlink/unlink06.c
+++ b/testcases/kernel/syscalls/unlink/unlink06.c
@@ -191,6 +191,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/unshare/unshare01.c b/testcases/kernel/syscalls/unshare/unshare01.c
index 5d18a6d..e19d73d 100644
--- a/testcases/kernel/syscalls/unshare/unshare01.c
+++ b/testcases/kernel/syscalls/unshare/unshare01.c
@@ -299,4 +299,4 @@
 	tst_resm(TCONF, "unshare is undefined.");
 	tst_exit();
 }
-#endif
+#endif
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ustat/ustat01.c b/testcases/kernel/syscalls/ustat/ustat01.c
index fda800d..3eefb5e 100644
--- a/testcases/kernel/syscalls/ustat/ustat01.c
+++ b/testcases/kernel/syscalls/ustat/ustat01.c
@@ -110,6 +110,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
@@ -154,4 +155,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/ustat/ustat02.c b/testcases/kernel/syscalls/ustat/ustat02.c
index 5c8b387..3a3d54b 100644
--- a/testcases/kernel/syscalls/ustat/ustat02.c
+++ b/testcases/kernel/syscalls/ustat/ustat02.c
@@ -196,4 +196,4 @@
 	 */
 	TEST_CLEANUP;
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/utime/utime02.c b/testcases/kernel/syscalls/utime/utime02.c
index cf48f64..8928a78 100644
--- a/testcases/kernel/syscalls/utime/utime02.c
+++ b/testcases/kernel/syscalls/utime/utime02.c
@@ -199,6 +199,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/utime/utime03.c b/testcases/kernel/syscalls/utime/utime03.c
index ebc26cc..23402b7 100644
--- a/testcases/kernel/syscalls/utime/utime03.c
+++ b/testcases/kernel/syscalls/utime/utime03.c
@@ -242,6 +242,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/utime/utime05.c b/testcases/kernel/syscalls/utime/utime05.c
index 1fe5400..6e92ade 100644
--- a/testcases/kernel/syscalls/utime/utime05.c
+++ b/testcases/kernel/syscalls/utime/utime05.c
@@ -172,6 +172,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/utimes/utimes01.c b/testcases/kernel/syscalls/utimes/utimes01.c
index 5e2bbc4..5868554 100644
--- a/testcases/kernel/syscalls/utimes/utimes01.c
+++ b/testcases/kernel/syscalls/utimes/utimes01.c
@@ -356,4 +356,4 @@
 	}
 	cleanup();
 	tst_exit();
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/vfork/vfork02.c b/testcases/kernel/syscalls/vfork/vfork02.c
index 563d076..8e93d71 100644
--- a/testcases/kernel/syscalls/vfork/vfork02.c
+++ b/testcases/kernel/syscalls/vfork/vfork02.c
@@ -172,6 +172,7 @@
 	}
 
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/wait/wait02.c b/testcases/kernel/syscalls/wait/wait02.c
index 86ddc78..3a21b9a 100644
--- a/testcases/kernel/syscalls/wait/wait02.c
+++ b/testcases/kernel/syscalls/wait/wait02.c
@@ -190,6 +190,7 @@
      * cleanup and exit
      ***************************************************************/
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/waitpid/waitpid08.c b/testcases/kernel/syscalls/waitpid/waitpid08.c
index dae7e1f..c30ce85 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid08.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid08.c
@@ -134,6 +134,7 @@
 		}
 	}
 	cleanup();
+	tst_exit();
 
 }
 
diff --git a/testcases/kernel/syscalls/waitpid/waitpid09.c b/testcases/kernel/syscalls/waitpid/waitpid09.c
index 83e8ae6..84b44ef 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid09.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid09.c
@@ -256,9 +256,10 @@
 		if (WEXITSTATUS(status) != 0) {
 			tst_brkm(TBROK, cleanup, "child returned bad "
 				 "status");
-		 }
+		}
 	}
 
+	tst_exit();
 }
 
 /*
@@ -333,4 +334,4 @@
 	setup_sigint();
 	do_exit();
 }
-#endif
\ No newline at end of file
+#endif
diff --git a/testcases/kernel/syscalls/waitpid/waitpid11.c b/testcases/kernel/syscalls/waitpid/waitpid11.c
index 288b6a4..e7142a2 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid11.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid11.c
@@ -301,6 +301,7 @@
 			exit(0);
 		}
 	}
+	tst_exit();
 
 }
 
@@ -373,4 +374,4 @@
 	setup_sigint();
 	do_exit();
 }
-#endif
\ No newline at end of file
+#endif
diff --git a/testcases/kernel/syscalls/waitpid/waitpid12.c b/testcases/kernel/syscalls/waitpid/waitpid12.c
index 38c4f2c..b5bea49 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid12.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid12.c
@@ -309,6 +309,7 @@
 			exit(0);
 		}
 	}
+	tst_exit();
 
 }
 
@@ -384,4 +385,4 @@
 	setup_sigint();
 	do_exit();
 }
-#endif
\ No newline at end of file
+#endif
diff --git a/testcases/kernel/syscalls/waitpid/waitpid13.c b/testcases/kernel/syscalls/waitpid/waitpid13.c
index a611df1..4c403fc 100644
--- a/testcases/kernel/syscalls/waitpid/waitpid13.c
+++ b/testcases/kernel/syscalls/waitpid/waitpid13.c
@@ -362,6 +362,7 @@
 			exit(0);
 		}
 	}
+	tst_exit();
 
 }
 
@@ -435,4 +436,4 @@
 	setup_sigint();
 	do_exit();
 }
-#endif
\ No newline at end of file
+#endif
diff --git a/testcases/kernel/syscalls/write/write01.c b/testcases/kernel/syscalls/write/write01.c
index c30363a..d29afa7 100644
--- a/testcases/kernel/syscalls/write/write01.c
+++ b/testcases/kernel/syscalls/write/write01.c
@@ -189,4 +189,4 @@
 
 	tst_rmdir();
 
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev01.c b/testcases/kernel/syscalls/writev/writev01.c
index cde34e3..482834f 100644
--- a/testcases/kernel/syscalls/writev/writev01.c
+++ b/testcases/kernel/syscalls/writev/writev01.c
@@ -410,4 +410,4 @@
 		tst_resm(TFAIL, "sighandler received invalid signal:%d", sig);
 		break;
 	}
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev02.c b/testcases/kernel/syscalls/writev/writev02.c
index 73054ac..8914bfa 100644
--- a/testcases/kernel/syscalls/writev/writev02.c
+++ b/testcases/kernel/syscalls/writev/writev02.c
@@ -248,4 +248,4 @@
 {
 	tst_brkm(TCONF, NULL, "test is not available on uClinux");
 }
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev03.c b/testcases/kernel/syscalls/writev/writev03.c
index d3494c8..0476f33 100644
--- a/testcases/kernel/syscalls/writev/writev03.c
+++ b/testcases/kernel/syscalls/writev/writev03.c
@@ -289,4 +289,4 @@
 {
 	tst_brkm(TCONF, NULL, "test is not available on uClinux");
 }
-#endif /* if !defined(UCLINUX) */
+#endif /* if !defined(UCLINUX) */
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev04.c b/testcases/kernel/syscalls/writev/writev04.c
index d6fbbb1..9968181 100644
--- a/testcases/kernel/syscalls/writev/writev04.c
+++ b/testcases/kernel/syscalls/writev/writev04.c
@@ -373,4 +373,4 @@
 		fail = 1;
 	}
 	return 0;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev05.c b/testcases/kernel/syscalls/writev/writev05.c
index dde874c..0336974 100644
--- a/testcases/kernel/syscalls/writev/writev05.c
+++ b/testcases/kernel/syscalls/writev/writev05.c
@@ -304,4 +304,4 @@
 		fail = 1;
 	}
 	return 0;
-}
+}
\ No newline at end of file
diff --git a/testcases/kernel/syscalls/writev/writev06.c b/testcases/kernel/syscalls/writev/writev06.c
index e378354..852ecb6 100644
--- a/testcases/kernel/syscalls/writev/writev06.c
+++ b/testcases/kernel/syscalls/writev/writev06.c
@@ -263,4 +263,4 @@
 
 	}
 	exit(sig);
-}
+}
\ No newline at end of file