Lines Matching refs:SIGALRM

120   ASSERT_EQ(SIGALRM, signal_number);  in raise_in_signal_handler_helper()
123 raise(SIGALRM); in raise_in_signal_handler_helper()
128 ScopedSignalHandler ssh(SIGALRM, raise_in_signal_handler_helper); in TEST()
129 raise(SIGALRM); in TEST()
133 ASSERT_EQ(SIGALRM, signal_number); in HandleSIGALRM()
137 ScopedSignalHandler ssh(SIGALRM, HandleSIGALRM); in TEST()
141 sigaddset(&wait_set, SIGALRM); in TEST()
149 ASSERT_EQ(SIGALRM, received_signal); in TEST()
162 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
166 ScopedSignalHandler ssh(SIGALRM, SigSuspendTestHelper); in TEST()
177 raise(SIGALRM); in TEST()
184 EXPECT_EQ((i == SIGALRM), sigismember(&pending, i)); in TEST()
190 sigdelset(&not_SIGALRM, SIGALRM); in TEST()
213 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &original_sa)); in TEST()
221 sigaddset(&sa.sa_mask, SIGALRM); in TEST()
224 ASSERT_EQ(0, sigaction(SIGALRM, &sa, NULL)); in TEST()
228 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &sa)); in TEST()
235 sigaddset(&sa.sa_mask, SIGALRM); in TEST()
238 ASSERT_EQ(0, sigaction(SIGALRM, &sa, NULL)); in TEST()
242 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &sa)); in TEST()
248 ASSERT_EQ(0, sigaction(SIGALRM, &original_sa, NULL)); in TEST()
286 ASSERT_EQ(SIGALRM, signum); in SigqueueSignalHandler()
287 ASSERT_EQ(SIGALRM, info->si_signo); in SigqueueSignalHandler()
294 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
298 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
307 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
314 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
319 ASSERT_EQ(SIGALRM, sigwaitinfo(&just_SIGALRM, &info)); in TEST()
321 ASSERT_EQ(SIGALRM, info.si_signo); in TEST()
331 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
338 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
346 ASSERT_EQ(SIGALRM, sigtimedwait(&just_SIGALRM, &info, &timeout)); in TEST()
363 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
441 ScopedSignalHandler sigalrm{SIGALRM}; in TEST()
442 ASSERT_EQ(0, sigignore(SIGALRM)); in TEST()
445 ASSERT_EQ(0, sigaction(SIGALRM, nullptr, &sa)); in TEST()
470 ScopedSignalHandler sigalrm{SIGALRM, sigalrm_handler}; in TEST()
475 ASSERT_EQ(0, sighold(SIGALRM)); in TEST()
477 EXPECT_TRUE(sigismember(&set, SIGALRM)); in TEST()
480 raise(SIGALRM); in TEST()
483 ASSERT_EQ(-1, sigpause(SIGALRM)); in TEST()
489 EXPECT_TRUE(sigismember(&set, SIGALRM)); in TEST()
491 ASSERT_EQ(0, sigrelse(SIGALRM)); in TEST()
493 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
504 ScopedSignalHandler sigalrm{SIGALRM, sigalrm_handler}; in TEST()
510 sigaddset(&sigalrm_set, SIGALRM); in TEST()
514 ASSERT_EQ(SIG_HOLD, sigset(SIGALRM, sigalrm_handler)); in TEST()
516 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
518 ASSERT_EQ(sigalrm_handler, sigset(SIGALRM, SIG_IGN)); in TEST()
520 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
522 ASSERT_EQ(SIG_IGN, sigset(SIGALRM, SIG_DFL)); in TEST()
524 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
526 ASSERT_EQ(SIG_DFL, sigset(SIGALRM, SIG_HOLD)); in TEST()
528 EXPECT_TRUE(sigismember(&set, SIGALRM)); in TEST()