Never pass TPASS to tst_brkm, tst_brkm will set TBROK to T_exitval, then cause test fail.
Signed-off-by: Bian Naimeng <[email protected]> --- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
