clock_getres01: remove TERRNO flag for overall test result
Hi,
The attached patch remove the TERRNO flag for the overall clock_getres01 test status. It is wrong because, if one of the test fails, the reported errno will always be the one from the last case05 test (even 0 if this one was successful).
Upon failure, the output will be:
[...]
clock_getres01 0 TINFO : (case05) START EXPECT: return value(ret)=(N >= 0) errno=0 (Success) RESULT: return value(ret)= 0 errno=0 (Success) clock_getres01 6 TPASS : (case05) END clock_getres01 7 TFAIL : clock_getres01 failed
But previously:
[...]
clock_getres01 0 TINFO : (case05) START EXPECT: return value(ret)=(N >= 0) errno=0 (Success) RESULT: return value(ret)= 0 errno=0 (Success) clock_getres01 6 TPASS : (case05) END clock_getres01 7 TFAIL : clock_getres01 failed: errno=???(0): Success
Regards.
Signature · 4 lines
Nicolas Joly Biological Software and Databanks. Institut Pasteur, Paris.
testcases/kernel/syscalls/clock_getres/clock_getres01.c +1 -1
@@ -327,7 +327,7 @@ int main(int ac, char **av) {break ;default : -tst_resm (TFAIL |TERRNO ,"%s failed" ,TCID ); +tst_resm (TFAIL ,"%s failed" ,TCID );RPRINTF ("NG\n" );cleanup ();tst_exit ();
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Garret,
This has not been reviewed/Acked !!
Regards--
Subrata
Quoted 27 lines · Nicolas Joly
Hi,
The attached patch remove the TERRNO flag for the overall
clock_getres01test status. It is wrong because, if one of the test fails, the reported errno will always be the one from the last case05 test (even 0 if this one was successful).Upon failure, the output will be:
[...]
clock_getres01 0 TINFO : (case05) START EXPECT: return value(ret)=(N >= 0) errno=0 (Success) RESULT: return value(ret)= 0 errno=0 (Success) clock_getres01 6 TPASS : (case05) END clock_getres01 7 TFAIL : clock_getres01 failedBut previously:
[...]
clock_getres01 0 TINFO : (case05) START EXPECT: return value(ret)=(N >= 0) errno=0 (Success) RESULT: return value(ret)= 0 errno=0 (Success) clock_getres01 6 TPASS : (case05) END clock_getres01 7 TFAIL : clock_getres01 failed: errno=???(0): SuccessSigned-off-by Nicolas Joly <[email protected]>
Quoted 7 lines
Regards.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Cyril Hrubis
Acked-byHi!
Quoted 1 line
This has not been reviewed/Acked !!
Signature · 11 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list