Skip to contentSkip to conversation

clock_getres01: remove TERRNO flag for overall test result

LTP Nicolas Joly 3 participants 3 messages Jul 11, 2010 – Jul 23, 2010

lore
Share & tools
lore
#0 lore raw

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
index 412ffa5..7df8c71 100644
@@ -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

#1 lore raw

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_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
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

Acked-by
#2 lore raw

Hi!

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