Skip to content

Commit 2c92578

Browse files
committed
utest:Fix signal info node leak in signal_tc when running multiple times.
1 parent 6e18455 commit 2c92578

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utest/signal_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ static void rt_signal_unmask_test(void)
8484
uassert_int_equal(rt_thread_kill(rt_thread_self(), signo), RT_EOK);
8585
rt_thread_mdelay(1);
8686
uassert_int_not_equal(recive_sig, signo);
87+
/* unmask to allow pending signal to be delivered and released */
88+
rt_signal_unmask(signo);
8789
}
8890

8991
return;

0 commit comments

Comments
 (0)