kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm()
PATCH v2 1/1 kernel:flock: Change tst_resm() followed by tst_exit() to tst_brkm()
As in commit 9fa8ad0 Change tst_resm() followed by tst_exit() to tst_brkm()
Signed-off-by Maninder Singh <[email protected]>
Signed-off-by Akhilesh Kumar <[email protected]>
--- testcases/kernel/syscalls/flock/flock01.c | 12 ++---------- testcases/kernel/syscalls/flock/flock06.c | 10 ++-------- 2 files changed, 4 insertions(+), 18 deletions(-)
testcases/kernel/syscalls/flock/flock01.c +2 -10
@@ -156,16 +156,8 @@ void setup(void)/* creating temporary file */ fd =creat (filename,0644 ); -if (fd <0 ) { -tst_resm (TFAIL ,"creating a new file failed" ); - -/* Removing temp directory */ -tst_rmdir (); - -/* exit with resturn code appropriate for result */ -tst_exit (); - - } +if (fd <0 ) +tst_brkm (TFAIL , tst_rmdir,"creating a new file failed" ); }/*
testcases/kernel/syscalls/flock/flock06.c +2 -8
@@ -160,14 +160,8 @@ void setup(void)/* creating temporary file */ fd =creat (filename,0666 ); -if (fd <0 ) { -tst_resm (TFAIL ,"creating a new file failed" ); - -/* Removing temp dir */ -tst_rmdir (); - -tst_exit (); - } +if (fd <0 ) +tst_brkm (TFAIL , tst_rmdir,"creating a new file failed" );close (fd); }
Signature · 6 lines
1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 8 lines · Maninder Singh
As in commit 9fa8ad0 Change
tst_resm()followed bytst_exit()totst_brkm()Signed-off-by Maninder Singh <[email protected]>Signed-off-by Akhilesh Kumar <[email protected]>--- testcases/kernel/syscalls/flock/flock01.c | 12 ++---------- testcases/kernel/syscalls/flock/flock06.c | 10 ++-------- 2 files changed, 4 insertions(+), 18 deletions(-)
+ I slightly modified the subject and changed TFAIL to TBROK and pushed.
Thanks.
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list