[LTP] [COMMITTED] [PATCH 17/23] syscalls/msync02: Make use of tst_parse_opts()

Cyril Hrubis chrubis@suse.cz
Tue Feb 28 12:11:39 CET 2017


Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/msync/msync02.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/msync/msync02.c b/testcases/kernel/syscalls/msync/msync02.c
index e1076a9..243ceb0 100644
--- a/testcases/kernel/syscalls/msync/msync02.c
+++ b/testcases/kernel/syscalls/msync/msync02.c
@@ -87,11 +87,10 @@ void cleanup();			/* cleanup function for the test */
 
 int main(int ac, char **av)
 {
+	tst_parse_opts(ac, av, NULL, NULL);
 
 	setup();
 
-	tst_count = 0;
-
 	TEST(msync(addr, page_sz, MS_INVALIDATE));
 
 	if (TEST_RETURN == -1)
@@ -102,7 +101,6 @@ int main(int ac, char **av)
 		tst_resm(TPASS, "Functionality of msync successful");
 
 	cleanup();
-
 	tst_exit();
 }
 
-- 
2.10.2



More information about the ltp mailing list