Hi Cyril,

Thanks for your comment.

Anyway, I know LTP initalizes the return value to 0 (TPASS) but the problem
is that this return code was "not reported" in the LTP log (in the same way
used by other testcases) and, moreover, the "kill05" output message was
misleading as it reported only the message " "kill failed with EPERM"
without any further message which explained that EPERM was the expected test
result and then the test worked fine.

Without above info, the result of the test was not very clear taking into
account the output message ("kill failed with EPERM") which didn't include
any further info about:

1. LTP exit code (TPASS/TFAIL/TINFO/TBROK...); 
2. "obtained result" against "expected ones";

FrancescoR.


-----Original Message-----
From: Cyril Hrubis [mailto:[email protected]] 
Sent: Wednesday, July 13, 2011 5:33 PM
To: Francesco RUNDO
Cc: [email protected]
Subject: Re: [LTP] [PATCH] kill05: Added proper return code (TPASS) if
testcase exit without errors.

Hi!
>       Added kill05 TPASS exit code.
> 
> The testcase didn't return any retrun code in case of 
> exit without errors i.e. in case of EPERM is correctly 
> raised by the system.

That shouldn't be a problem. The source in lib/tst_res.c initalizes the
return value to 0 (which is equal to TPASS) so when you call tst_exit()
it returns TPASS unless the tests reports failure.

-- 
Cyril Hrubis
[email protected]


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to