* [LTP] [PATCH]Fix bug of add_key01
@ 2010-12-28 3:47 Bian Naimeng
2011-01-02 1:22 ` Garrett Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Bian Naimeng @ 2010-12-28 3:47 UTC (permalink / raw)
To: Garrett Cooper; +Cc: ltp-list
Never pass TPASS to tst_brkm, tst_brkm will set TBROK to T_exitval,
then cause test fail.
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
testcases/kernel/syscalls/add_key/add_key01.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/add_key/add_key01.c b/testcases/kernel/syscalls/add_key/add_key01.c
index ffa2f68..3786c9a 100644
--- a/testcases/kernel/syscalls/add_key/add_key01.c
+++ b/testcases/kernel/syscalls/add_key/add_key01.c
@@ -127,8 +127,7 @@ int main(int ac, char **av) {
NULL, 0,
KEY_SPEC_THREAD_KEYRING));
if (TEST_RETURN != -1) {
- tst_brkm(TPASS, cleanup,
- "add_key call succeeded");
+ tst_resm(TPASS, "add_key call succeeded");
} else {
tst_resm(TFAIL|TTERRNO, "%s failed", TCID);
}
--
1.7.0.4
--
Regards
Bian Naimeng
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH]Fix bug of add_key01
2010-12-28 3:47 [LTP] [PATCH]Fix bug of add_key01 Bian Naimeng
@ 2011-01-02 1:22 ` Garrett Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Garrett Cooper @ 2011-01-02 1:22 UTC (permalink / raw)
To: Bian Naimeng; +Cc: ltp-list
On Dec 27, 2010, at 7:47 PM, Bian Naimeng wrote:
> Never pass TPASS to tst_brkm, tst_brkm will set TBROK to T_exitval,
> then cause test fail.
I just simplified the testcase instead because IIRC the original version did the wrong thing and tst_resm + called cleanup immediately (or maybe I just got it backwards, but I hate the looping garbage ... so bye bye loop logic!).
Again, good catch though.
Thanks!
-Garrett
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-02 1:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-28 3:47 [LTP] [PATCH]Fix bug of add_key01 Bian Naimeng
2011-01-02 1:22 ` Garrett Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox