From 9fd9081ec73f952397f0115eee9fcb01de19eb4e Mon Sep 17 00:00:00 2001 From: junmin kim Date: Mon, 4 Sep 2017 02:34:52 -0700 Subject: [PATCH] Delete timer at the end of tc_libc_signal_sigpause Created timer should be deleted --- apps/examples/testcase/le_tc/kernel/tc_libc_signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/examples/testcase/le_tc/kernel/tc_libc_signal.c b/apps/examples/testcase/le_tc/kernel/tc_libc_signal.c index d40b25f..5c42e48 100644 --- a/apps/examples/testcase/le_tc/kernel/tc_libc_signal.c +++ b/apps/examples/testcase/le_tc/kernel/tc_libc_signal.c @@ -224,14 +224,15 @@ static void tc_libc_signal_sigpause(void) st_timer_spec_val.it_value.tv_sec = 2; ret_chk = timer_settime(timer_id, 0, &st_timer_spec_val, NULL); - TC_ASSERT_EQ_ERROR_CLEANUP("timer_settime", ret_chk, OK, errno, timer_delete(timer_id)); + TC_ASSERT_EQ_CLEANUP("timer_settime", ret_chk, OK, timer_delete(timer_id)); printf("sigpause test : Before Pause\n"); ret_chk = sigpause(SIG1); - TC_ASSERT_EQ("sigpause", ret_chk, ERROR); + TC_ASSERT_EQ_CLEANUP("sigpause", ret_chk, ERROR, timer_delete(timer_id)); printf("sigpause test : 2 sec After Pause\n"); + timer_delete(timer_id); TC_SUCCESS_RESULT(); } -- 2.7.4