Style and conformance changes.
1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
diff --git a/testcases/kernel/syscalls/lseek/lseek06.c b/testcases/kernel/syscalls/lseek/lseek06.c
index 2ae7e92..706c079 100644
--- a/testcases/kernel/syscalls/lseek/lseek06.c
+++ b/testcases/kernel/syscalls/lseek/lseek06.c
@@ -105,15 +105,13 @@
>>>>>>> master
if (msg != NULL) {
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
- tst_exit();
+
}
- /* Perform global setup for test */
setup();
- /* Check looping state if -i option given */
for (lc = 0; TEST_LOOPING(lc); lc++) {
- /* Reset Tst_count in case we are looping. */
+
Tst_count = 0;
/*
@@ -122,7 +120,6 @@
*/
TEST(lseek(fildes, OFFSET, SEEK_SET));
- /* check return code of lseek(2) */
if (TEST_RETURN == (off_t) - 1) {
tst_resm(TFAIL, "lseek on (%s) Failed, errno=%d : %s",
TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO));
@@ -167,13 +164,12 @@
} else {
tst_resm(TPASS, "call succeeded");
}
- } /* End for TEST_LOOPING */
+ }
- /* Call cleanup() to undo setup done for the test. */
cleanup();
return 0;
-} /* End main */
+}
/*
* setup() - performs all ONE TIME setup for this test.
@@ -185,13 +181,10 @@
{
char write_buf[BUFSIZ]; /* buffer to hold data */
- /* capture signals */
tst_sig(NOFORK, DEF_HANDLER, cleanup);
- /* Pause if that option was specified */
TEST_PAUSE;
- /* make a temp directory and cd to it */
tst_tmpdir();
/* Get the data to be written to temporary file */
@@ -230,9 +223,6 @@
TEMP_FILE, errno, strerror(errno));
}
- /* Remove tmp dir and all files in it */
tst_rmdir();
- /* exit with return code appropriate for results */
- tst_exit();
-}
+}
\ No newline at end of file