Fix clock_nanosleep01 overall test status
PATCH 1/1 Fix clock_nanosleep01 overall test status
Hi,
Please find a small patch that fix the clock_nanosleep01 overall test status. It removes the TERRNO flag which will wrongly report the last test error ...
before:
[...]
clock_nanosleep01 0 TINFO : (case04) START clock_nanosleep01 1 TFAIL : clock_nanosleep01.c:294: clock_gettime failed: TEST_ERRNO=EINVAL(22): Invalid argument clock_nanosleep01 0 TINFO : (case04) END => NG clock_nanosleep01 0 TINFO : (case05) START clock_nanosleep01 0 TINFO : remain time: 9 489917345 EXPECT: return value(ret)=4 errno=0 (Success) RESULT: return value(ret)=4 errno=0 (Success) clock_nanosleep01 0 TINFO : (case05) END => OK clock_nanosleep01 2 TFAIL : clock_nanosleep01.c:394: clock_nanosleep failed: errno=SUCCESS(0): Success
after:
[...]
clock_nanosleep01 0 TINFO : (case04) START clock_nanosleep01 1 TFAIL : clock_nanosleep01.c:294: clock_gettime failed: TEST_ERRNO=EINVAL(22): Invalid argument clock_nanosleep01 0 TINFO : (case04) END => NG clock_nanosleep01 0 TINFO : (case05) START clock_nanosleep01 0 TINFO : remain time: 9 489936483 EXPECT: return value(ret)=4 errno=0 (Success) RESULT: return value(ret)=4 errno=0 (Success) clock_nanosleep01 0 TINFO : (case05) END => OK clock_nanosleep01 2 TFAIL : clock_nanosleep01.c:394: clock_nanosleep failed
Thanks.
Signature · 16 lines
Nicolas Joly Cluster & Computing Group Biology IT Center Institut Pasteur, Paris. -------------- next part -------------- commit aec40955112ac88c62b5982418e612c1fb7a480d Author: Nicolas Joly <[email protected]> Date: Mon Jul 25 09:09:28 2016 +0200 clock_nanosleep/clock_nanosleep01: Fix overall result from tests. Remove TERRNO flag when printing overall test status. On failure, the value will wrongly output the status of the last test. Signed-off-by: Nicolas Joly <[email protected]>
testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c +1 -1
@@ -390,7 +390,7 @@ int main(int ac, char **av)break ;default : -tst_brkm (TFAIL |TERRNO , cleanup, +tst_brkm (TFAIL , cleanup,"clock_nanosleep failed" );break ; }
PATCH 1/1 Fix clock_nanosleep01 overall test status
Hi!
Quoted 3 lines
Please find a small patch that fix the
clock_nanosleep01overall test status. It removes the TERRNO flag which will wrongly report the last test error ...
Not that this is wrong but I would rather see the test print one PASS/FAIL per each do_test() call.
And ideally get rid of the excessive and obvious comments (in a separate patch) as well.
Signature · 2 lines
Cyril Hrubis [email protected]