Lines Matching refs:set
41 static int SIGNAL_MAX(SigSetT* set) { in SIGNAL_MAX() argument
42 return sizeof(*set) * 8; in SIGNAL_MAX()
54 SigSetT set = {}; in TestSigSet1() local
56 ASSERT_EQ(0, fn(&set)); in TestSigSet1()
68 SigSetT set = {}; in TestSigSet2() local
72 ASSERT_EQ(-1, fn(&set, 0)); in TestSigSet2()
77 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX(&set) + 1)); in TestSigSet2()
82 ASSERT_EQ(0, fn(&set, SIGNAL_MIN())); in TestSigSet2()
84 ASSERT_EQ(0, fn(&set, SIGNAL_MAX(&set))); in TestSigSet2()
862 sigset_t set; in TestSigholdSigpauseSigrelse() local
866 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, nullptr, &set)); in TestSigholdSigpauseSigrelse()
867 EXPECT_TRUE(sigismember(&set, sig)); in TestSigholdSigpauseSigrelse()
879 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, nullptr, &set)); in TestSigholdSigpauseSigrelse()
880 EXPECT_TRUE(sigismember(&set, sig)); in TestSigholdSigpauseSigrelse()
884 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, nullptr, &set)); in TestSigholdSigpauseSigrelse()
885 EXPECT_FALSE(sigismember(&set, sig)); in TestSigholdSigpauseSigrelse()
913 sigset_t set; in TEST() local
914 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, nullptr, &set)); in TEST()
915 ASSERT_TRUE(sigismember(&set, SIGRTMIN)); in TEST()
936 sigset_t set; in TEST() local
937 sigemptyset(&set); in TEST()
938 sigaddset(&set, SIGALRM); in TEST()
939 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, &set, nullptr)); in TEST()
941 sigemptyset(&set); in TEST()
943 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, nullptr, &set)); in TEST()
944 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
947 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, nullptr, &set)); in TEST()
948 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
951 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, nullptr, &set)); in TEST()
952 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
955 ASSERT_EQ(0, sigprocmask(SIG_BLOCK, nullptr, &set)); in TEST()
956 EXPECT_TRUE(sigismember(&set, SIGALRM)); in TEST()