TC: Expand test case for pthread_sigmask() API.
Adds test case: invalid signal as input to pthread_sigmask().
#define INTHREAD 0
#define INMAIN 1
#define SIGQUIT 3
+#define NOSIG 333
struct mallinfo mem;
@@ -1345,6 +1346,9 @@ static void tc_pthread_pthread_sigmask(void)
sigemptyset(&st_newmask);
sigaddset(&st_newmask, SIGQUIT);
+ ret_chk = pthread_sigmask(NOSIG, &st_newmask, &st_oldmask);
+ TC_ASSERT_EQ("pthread_sigmask", ret_chk, EINVAL);
+
ret_chk = pthread_sigmask(SIG_BLOCK, &st_newmask, &st_oldmask);
TC_ASSERT_GEQ("pthread_sigmask", ret_chk, 0);
