From: Bian N. <bi...@cn...> - 2010-12-28 03:51:04
|
Never pass TPASS to tst_brkm, tst_brkm will set TBROK to T_exitval, then cause test fail. Signed-off-by: Bian Naimeng <bi...@cn...> --- 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 |