Change tst_resm() followed by tst_exit() to tst_brkm()
Created with coccinelle patch:
@@
expression list L;
expression C != {TINFO, TPASS};
@@
- tst_resm
+ tst_brkm
(C,
+ NULL,
L);
- tst_exit();
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/testcases/kernel/mem/vmtests/data_space.c b/testcases/kernel/mem/vmtests/data_space.c
index 61a31ff..db17038 100644
--- a/testcases/kernel/mem/vmtests/data_space.c
+++ b/testcases/kernel/mem/vmtests/data_space.c
@@ -96,8 +96,7 @@
{
tst_resm(TCONF, "Usage: %s <nchild> <size> <chunk_size> <iterations>",
prog);
- tst_resm(TCONF, "DEFAULTS: 10 1024*1024 4096 25");
- tst_exit();
+ tst_brkm(TCONF, NULL, "DEFAULTS: 10 1024*1024 4096 25");
}
int main(argc, argv)
@@ -493,9 +492,9 @@
tst_resm(TINFO, "\tThis is ok - probably swap space limit.\n");
tst_exit();
} else {
- tst_resm(TBROK,
+ tst_brkm(TBROK,
+ NULL,
"\tThis is not ok for first child - check parameters.\n");
- tst_exit();
}
return 0;