flock03.c: fixes a typo when compiling with UCLINUX=1
Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
empty lines.
Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
diff --git a/testcases/kernel/syscalls/flock/flock03.c b/testcases/kernel/syscalls/flock/flock03.c
index bacf4f6..a7a1cd9 100644
--- a/testcases/kernel/syscalls/flock/flock03.c
+++ b/testcases/kernel/syscalls/flock/flock03.c
@@ -86,13 +86,13 @@
"file, errno %d", errno);
pid = FORK_OR_VFORK();
-
+
if (pid == -1)
tst_brkm(TFAIL, cleanup, "fork() failed, errno %d",
errno);
if (pid == 0) {
#ifdef UCLINUX
- if (self_exec(argv[0], "ds", fd, FILENAME) < 0)
+ if (self_exec(argv[0], "ds", fd, FILE_NAME) < 0)
tst_brkm(TFAIL, cleanup, "self_exec failed, "
"errno &d", errno);
#else
@@ -161,7 +161,7 @@
}
TEST(flock(fd2, LOCK_EX | LOCK_NB));
-
+
if (TEST_RETURN == -1) {
fprintf(stderr, "CHILD: Unable to lock file after "
"unlocking: %s\n", strerror(TEST_ERRNO));
@@ -169,10 +169,10 @@
} else {
fprintf(stderr, "CHILD: Locking after unlock passed\n");
}
-
+
close(fd);
close(fd2);
-
+
exit(0);
}