state = PTHREAD_CANCEL_DISABLE;
ret_chk = pthread_setcancelstate(state, &oldstate);
+ TC_ASSERT_EQ("pthread_setcancelstate", ret_chk, OK);
TC_ASSERT_EQ("pthread_setcancelstate", oldstate, PTHREAD_CANCEL_ENABLE);
TC_SUCCESS_RESULT();
int ret_chk;
type = PTHREAD_CANCEL_ASYNCHRONOUS;
- oldtype = PTHREAD_CANCEL_DEFERRED;
ret_chk = pthread_setcanceltype(type, &oldtype);
TC_ASSERT_EQ("pthread_setcanceltype", ret_chk, OK);
- TC_ASSERT_EQ("pthread_setcanceltype", oldtype, PTHREAD_CANCEL_ASYNCHRONOUS);
type = PTHREAD_CANCEL_DEFERRED;
ret_chk = pthread_setcanceltype(type, &oldtype);
int ret_chk;
type = PTHREAD_CANCEL_ASYNCHRONOUS;
- oldtype = PTHREAD_CANCEL_DEFERRED;
ret_chk = pthread_setcanceltype(type, &oldtype);
TC_ASSERT_EQ("pthread_setcanceltype", ret_chk, OK);
- TC_ASSERT_EQ("pthread_setcanceltype", oldtype, PTHREAD_CANCEL_ASYNCHRONOUS);
type = PTHREAD_CANCEL_DEFERRED;
ret_chk = pthread_setcanceltype(type, &oldtype);