ttype: Replase TINFO with TPASS or TFAIL
PATCH 1/1 ttype: Replase TINFO with TPASS or TFAIL
For those:
testcases/kernel/syscalls/fcntl/fcntl16.c testcases/kernel/syscalls/fcntl/fcntl18.c testcases/kernel/syscalls/fcntl/fcntl19.c testcases/kernel/syscalls/fcntl/fcntl20.c testcases/kernel/syscalls/fcntl/fcntl21.c testcases/kernel/syscalls/getpgid/getpgid01.c testcases/kernel/syscalls/modify_ldt/modify_ldt01.c testcases/kernel/syscalls/modify_ldt/modify_ldt02.c testcases/kernel/syscalls/writev/writev05.c testcases/kernel/syscalls/writev/writev06.c
--- testcases/kernel/syscalls/fcntl/fcntl16.c | 12 ++--- testcases/kernel/syscalls/fcntl/fcntl18.c | 12 ++--- testcases/kernel/syscalls/fcntl/fcntl19.c | 28 ++++++------ testcases/kernel/syscalls/fcntl/fcntl20.c | 28 ++++++------ testcases/kernel/syscalls/fcntl/fcntl21.c | 44 +++++++++---------- testcases/kernel/syscalls/getpgid/getpgid01.c | 10 ++--- .../kernel/syscalls/modify_ldt/modify_ldt01.c | 14 +++--- .../kernel/syscalls/modify_ldt/modify_ldt02.c | 12 ++--- testcases/kernel/syscalls/writev/writev05.c | 4 +- testcases/kernel/syscalls/writev/writev06.c | 4 +- 10 files changed, 84 insertions(+), 84 deletions(-)
testcases/kernel/syscalls/fcntl/fcntl16.c +6 -6
@@ -673,10 +673,10 @@ int main(int ac, char **av)*/ tst_resm (TINFO ,"Entering block 1" );if (run_test (O_CREAT |O_RDWR |O_TRUNC ,0777 ,0 ,11 )) { -tst_resm (TINFO ,"Test case 1: without mandatory " +tst_resm (TFAIL ,"Test case 1: without mandatory " "locking FAILED" ); }else { -tst_resm (TINFO ,"Test case 1: without manadatory " +tst_resm (TPASS ,"Test case 1: without manadatory " "locking PASSED" ); }tst_resm (TINFO ,"Exiting block 1" );
@@ -689,11 +689,11 @@ int main(int ac, char **av)tst_resm (TINFO ,"Entering block 2" );if (NO_NFS &&run_test (O_CREAT |O_RDWR |O_TRUNC ,S_ISGID |S_IRUSR |S_IWUSR ,0 ,11 )) { -tst_resm (TINFO ,"Test case 2: with mandatory record " +tst_resm (TFAIL ,"Test case 2: with mandatory record " "locking FAILED" ); }else {if (NO_NFS ) -tst_resm (TINFO ,"Test case 2: with mandatory" +tst_resm (TPASS ,"Test case 2: with mandatory" " record locking PASSED" );else tst_resm(TCONF, "Test case 2: NFS does not"
@@ -709,11 +709,11 @@ int main(int ac, char **av)tst_resm (TINFO ,"Entering block 3" );if (NO_NFS &&run_test (O_CREAT |O_RDWR |O_TRUNC |O_NDELAY ,S_ISGID |S_IRUSR |S_IWUSR ,0 ,11 )) { -tst_resm (TINFO ,"Test case 3: mandatory locking with " +tst_resm (TFAIL ,"Test case 3: mandatory locking with " "NODELAY FAILED" ); }else {if (NO_NFS ) -tst_resm (TINFO ,"Test case 3: mandatory" +tst_resm (TPASS ,"Test case 3: mandatory" " locking with NODELAY PASSED" );else tst_resm(TCONF, "Test case 3: NFS does not"
testcases/kernel/syscalls/fcntl/fcntl18.c +6 -6
@@ -88,9 +88,9 @@ int main(int ac, char **av) fail = 1; }if (fail) { -tst_resm (TINFO ,"Block 1 FAILED" ); +tst_resm (TFAIL ,"Block 1 FAILED" ); }else { -tst_resm (TINFO ,"Block 1 PASSED" ); +tst_resm (TPASS ,"Block 1 PASSED" ); }tst_resm (TINFO ,"Exit block 1" );#else
@@ -111,9 +111,9 @@ int main(int ac, char **av) fail = 1; }if (fail) { -tst_resm (TINFO ,"Block 2 FAILED" ); +tst_resm (TFAIL ,"Block 2 FAILED" ); }else { -tst_resm (TINFO ,"Block 2 PASSED" ); +tst_resm (TPASS ,"Block 2 PASSED" ); }tst_resm (TINFO ,"Exit block 2" );#else
@@ -150,9 +150,9 @@ int main(int ac, char **av) fail =1 ; }if (fail) { -tst_resm (TINFO ,"Block 3 FAILED" ); +tst_resm (TFAIL ,"Block 3 FAILED" ); }else { -tst_resm (TINFO ,"Block 3 PASSED" ); +tst_resm (TPASS ,"Block 3 PASSED" ); } }tst_resm (TINFO ,"Exit block 3" );
testcases/kernel/syscalls/fcntl/fcntl19.c +14 -14
@@ -353,9 +353,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 1: FAILED" ); +tst_resm (TFAIL ,"Test block 1: FAILED" ); }else { -tst_resm (TINFO ,"Test block 1: PASSED" ); +tst_resm (TPASS ,"Test block 1: PASSED" ); }tst_resm (TINFO ,"Exit block 1" );
@@ -396,9 +396,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 2: FAILED" ); +tst_resm (TFAIL ,"Test block 2: FAILED" ); }else { -tst_resm (TINFO ,"Test block 2: PASSED" ); +tst_resm (TPASS ,"Test block 2: PASSED" ); }tst_resm (TINFO ,"Exit block 2" );
@@ -440,9 +440,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 3: FAILED" ); +tst_resm (TFAIL ,"Test block 3: FAILED" ); }else { -tst_resm (TINFO ,"Test block 3: PASSED" ); +tst_resm (TPASS ,"Test block 3: PASSED" ); }tst_resm (TINFO ,"Exit block 3" );
@@ -490,9 +490,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 4: FAILED" ); +tst_resm (TFAIL ,"Test block 4: FAILED" ); }else { -tst_resm (TINFO ,"Test block 4: PASSED" ); +tst_resm (TPASS ,"Test block 4: PASSED" ); }tst_resm (TINFO ,"Exit block 4" );
@@ -534,9 +534,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 5: FAILED" ); +tst_resm (TFAIL ,"Test block 5: FAILED" ); }else { -tst_resm (TINFO ,"Test block 5: PASSED" ); +tst_resm (TPASS ,"Test block 5: PASSED" ); }tst_resm (TINFO ,"Exit block 5" );
@@ -578,9 +578,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 6: FAILED" ); +tst_resm (TFAIL ,"Test block 6: FAILED" ); }else { -tst_resm (TINFO ,"Test block 6: PASSED" ); +tst_resm (TPASS ,"Test block 6: PASSED" ); }tst_resm (TINFO ,"Exit block 6" );
@@ -623,9 +623,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 7: FAILED" ); +tst_resm (TFAIL ,"Test block 7: FAILED" ); }else { -tst_resm (TINFO ,"Test block 7: PASSED" ); +tst_resm (TPASS ,"Test block 7: PASSED" ); }tst_resm (TINFO ,"Exit block 7" );
testcases/kernel/syscalls/fcntl/fcntl20.c +14 -14
@@ -352,9 +352,9 @@ int main(int ac, char **av)unlock_file ();if (fail) { -tst_resm (TINFO ,"Test block 1: FAILED" ); +tst_resm (TFAIL ,"Test block 1: FAILED" ); }else { -tst_resm (TINFO ,"Test block 1: PASSED" ); +tst_resm (TPASS ,"Test block 1: PASSED" ); }tst_resm (TINFO ,"Exit block 1" );
@@ -395,9 +395,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 2: FAILED" ); +tst_resm (TFAIL ,"Test block 2: FAILED" );else -tst_resm (TINFO ,"Test block 2: PASSED" ); +tst_resm (TPASS ,"Test block 2: PASSED" );tst_resm (TINFO ,"Exit block 2" );/* //block3: */
@@ -438,9 +438,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 3: FAILED" ); +tst_resm (TFAIL ,"Test block 3: FAILED" );else -tst_resm (TINFO ,"Test block 3: PASSED" ); +tst_resm (TPASS ,"Test block 3: PASSED" );tst_resm (TINFO ,"Exit block 3" );/* //block4: */
@@ -487,9 +487,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 4: FAILED" ); +tst_resm (TFAIL ,"Test block 4: FAILED" );else -tst_resm (TINFO ,"Test block 4: PASSED" ); +tst_resm (TPASS ,"Test block 4: PASSED" );tst_resm (TINFO ,"Exit block 4" );/* //block5: */
@@ -530,9 +530,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 5: FAILED" ); +tst_resm (TFAIL ,"Test block 5: FAILED" );else -tst_resm (TINFO ,"Test block 5: PASSED" ); +tst_resm (TPASS ,"Test block 5: PASSED" );tst_resm (TINFO ,"Exit block 5" );/* //block6: */
@@ -573,9 +573,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 6: FAILED" ); +tst_resm (TFAIL ,"Test block 6: FAILED" );else -tst_resm (TINFO ,"Test block 6: PASSED" ); +tst_resm (TPASS ,"Test block 6: PASSED" );tst_resm (TINFO ,"Exit block 6" );/* //block7: */
@@ -617,9 +617,9 @@ int main(int ac, char **av)unlock_file ();if (fail) -tst_resm (TINFO ,"Test block 7: FAILED" ); +tst_resm (TFAIL ,"Test block 7: FAILED" );else -tst_resm (TINFO ,"Test block 7: PASSED" ); +tst_resm (TPASS ,"Test block 7: PASSED" );tst_resm (TINFO ,"Exit block 7" );
testcases/kernel/syscalls/fcntl/fcntl21.c +22 -22
121 lines not on this page · raw message
testcases/kernel/syscalls/getpgid/getpgid01.c +5 -5
@@ -77,9 +77,9 @@ int main(int ac, char **av)while ((pgid_0 =wait (&ex_stat)) !=-1 ) ;if (WEXITSTATUS (ex_stat) ==0 ) -tst_resm (TINFO ,"%s PASSED" ,TCID ); +tst_resm (TPASS ,"%s PASSED" ,TCID );else -tst_resm (TINFO ,"%s FAILED" ,TCID ); +tst_resm (TFAIL ,"%s FAILED" ,TCID );exit (0 ); }
@@ -92,7 +92,7 @@ int main(int ac, char **av) }if (fail) -tst_resm (TINFO ,"Test block 1: getpgid(0) FAILED" ); +tst_resm (TFAIL ,"Test block 1: getpgid(0) FAILED" );else tst_resm (TPASS ,"Test block 1: getpgid(0) PASSED" );tst_resm (TINFO ,"Exit block 1" );
@@ -155,7 +155,7 @@ int main(int ac, char **av) }if (fail) -tst_resm (TINFO ,"Test block 4: getpgid(1) FAILED" ); +tst_resm (TFAIL ,"Test block 4: getpgid(1) FAILED" );else tst_resm (TPASS ,"Test block 4: getpgid(1) PASSED" );tst_resm (TINFO ,"Exit block 4" );
@@ -170,7 +170,7 @@ int main(int ac, char **av) }if (fail) -tst_resm (TINFO ,"Test block 5: getpgid(1) FAILED" ); +tst_resm (TFAIL ,"Test block 5: getpgid(1) FAILED" );else tst_resm (TPASS ,"Test block 5: getpgid(1) PASSED" );tst_resm (TINFO ,"Exit block 5" );
testcases/kernel/syscalls/modify_ldt/modify_ldt01.c +7 -7
@@ -134,9 +134,9 @@ int main(int ac, char **av) }if (flag) { -tst_resm (TINFO ,"block 1 FAILED" ); +tst_resm (TFAIL ,"block 1 FAILED" ); }else { -tst_resm (TINFO ,"block 1 PASSED" ); +tst_resm (TPASS ,"block 1 PASSED" ); }tst_resm (TINFO ,"Exit block 1" );free (ptr);
@@ -165,9 +165,9 @@ int main(int ac, char **av) }if (flag) { -tst_resm (TINFO ,"block 2 FAILED" ); +tst_resm (TFAIL ,"block 2 FAILED" ); }else { -tst_resm (TINFO ,"block 2 PASSED" ); +tst_resm (TPASS ,"block 2 PASSED" ); }tst_resm (TINFO ,"Exit block 2" );
@@ -177,7 +177,7 @@ int main(int ac, char **av)* Create a new LDT segment. */ if (create_segment (seg,sizeof (seg)) ==-1 ) { -tst_brkm (TINFO , cleanup,"Creation of segment failed" ); +tst_brkm (TBROK , cleanup,"Creation of segment failed" ); }/*
@@ -200,9 +200,9 @@ int main(int ac, char **av) }if (flag) { -tst_resm (TINFO ,"block 3 FAILED" ); +tst_resm (TFAIL ,"block 3 FAILED" ); }else { -tst_resm (TINFO ,"block 3 PASSED" ); +tst_resm (TPASS ,"block 3 PASSED" ); }tst_resm (TINFO ,"Exit block 3" );
testcases/kernel/syscalls/modify_ldt/modify_ldt02.c +6 -6
@@ -113,7 +113,7 @@ int main(int ac, char **av) seg[0 ] =12345 ;if (create_segment (seg,sizeof (seg)) ==-1 ) { -tst_brkm (TINFO , cleanup,"Creation of segment failed" ); +tst_brkm (TBROK , cleanup,"Creation of segment failed" ); } val =read_segment (0 );
@@ -125,9 +125,9 @@ int main(int ac, char **av) }if (flag) { -tst_resm (TINFO ,"block 1 FAILED" ); +tst_resm (TFAIL ,"block 1 FAILED" ); }else { -tst_resm (TINFO ,"block 1 PASSED" ); +tst_resm (TPASS ,"block 1 PASSED" ); }tst_resm (TINFO ,"Exit block 1" );
@@ -137,7 +137,7 @@ int main(int ac, char **av) flag =0 ;if (create_segment (0 ,10 ) ==-1 ) { -tst_brkm (TINFO , cleanup,"Creation of segment failed" ); +tst_brkm (TBROK , cleanup,"Creation of segment failed" ); }tst_old_flush ();
@@ -155,9 +155,9 @@ int main(int ac, char **av) }if (flag) { -tst_resm (TINFO ,"block 2 FAILED" ); +tst_resm (TFAIL ,"block 2 FAILED" ); }else { -tst_resm (TINFO ,"block 2 PASSED" ); +tst_resm (TPASS ,"block 2 PASSED" ); } }cleanup ();
testcases/kernel/syscalls/writev/writev05.c +2 -2
@@ -179,9 +179,9 @@ int main(int argc, char **argv) fail =1 ; }if (fail) { -tst_resm (TINFO ,"block 1 FAILED" ); +tst_resm (TFAIL ,"block 1 FAILED" ); }else { -tst_resm (TINFO ,"block 1 PASSED" ); +tst_resm (TPASS ,"block 1 PASSED" ); }tst_resm (TINFO ,"Exit block 1" ); }
testcases/kernel/syscalls/writev/writev06.c +2 -2
@@ -138,9 +138,9 @@ int main(int argc, char **argv) fail =1 ; }if (fail) { -tst_resm (TINFO ,"block 1 FAILED" ); +tst_resm (TFAIL ,"block 1 FAILED" ); }else { -tst_resm (TINFO ,"block 1 PASSED" ); +tst_resm (TPASS ,"block 1 PASSED" ); }tst_resm (TINFO ,"Exit block 1" ); }
--
2.17.1
PATCH 1/1 ttype: Replase TINFO with TPASS or TFAIL
Hi!
Quoted 6 lines
testcases/kernel/syscalls/fcntl/fcntl16.c +0
-0@@ -673,10 +673,10 @@ int main(int ac, char **av)*/
testcases/kernel/syscalls/fcntl/fcntl16.c int main(int ac, char **av) · line 681
Quoted 10 lines
testcases/kernel/syscalls/fcntl/fcntl16.c +2
-2tst_resm (TINFO ,"Entering block 1" );if (run_test (O_CREAT |O_RDWR |O_TRUNC ,0777 ,0 ,11 )) { -tst_resm (TINFO ,"Test case 1: without mandatory " +tst_resm (TFAIL ,"Test case 1: without mandatory " "locking FAILED" ); }else { -tst_resm (TINFO ,"Test case 1: without manadatory " +tst_resm (TPASS ,"Test case 1: without manadatory " "locking PASSED" ); }
I would be happier if we fixed the run_test() function to report TFAIL/TPASS in all cases and just called run_test() from the main().
It shouldn't be even a big change since we report most of the failures there, what we need is to change one TINFO into TFAIL and report TPASS at the end of the function.
testcases/kernel/syscalls/fcntl/fcntl16.c int main(int ac, char **av) · line 682
Quoted 1 line
testcases/kernel/syscalls/fcntl/fcntl16.c +0
-0tst_resm (TINFO ,"Exiting block 1" );
Also can we please get rid of the useless entering/exitting block messages?
And the same applies for the rest of the tests changed by this patch.
Signature · 2 lines
Cyril Hrubis [email protected]