Lines Matching refs:SIGALRM

145   ASSERT_EQ(SIGALRM, signal_number);  in raise_in_signal_handler_helper()
148 raise(SIGALRM); in raise_in_signal_handler_helper()
153 ScopedSignalHandler ssh(SIGALRM, raise_in_signal_handler_helper); in TEST()
154 raise(SIGALRM); in TEST()
165 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
168 ScopedSignalHandler ssh(SIGALRM, [](int) { ++g_sigsuspend_signal_handler_call_count; }); in TEST()
179 raise(SIGALRM); in TEST()
186 EXPECT_EQ((i == SIGALRM), sigismember(&pending, i)); in TEST()
192 sigdelset(&not_SIGALRM, SIGALRM); in TEST()
301 TestSigAction(sigaction, sigaddset, SIGALRM); in TEST()
576 ASSERT_EQ(SIGALRM, signum); in SigqueueSignalHandler()
577 ASSERT_EQ(SIGALRM, info->si_signo); in SigqueueSignalHandler()
584 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
587 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
593 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
596 ASSERT_EQ(0, pthread_sigqueue(pthread_self(), SIGALRM, sigval)); in TEST()
602 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
620 ASSERT_EQ(0, pthread_sigqueue(thread, SIGALRM, sigval)); in TEST()
632 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
637 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
642 ASSERT_EQ(SIGALRM, sig); in TEST()
670 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
675 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
680 ASSERT_EQ(SIGALRM, sigwaitinfo(&just_SIGALRM, &info)); in TEST()
682 ASSERT_EQ(SIGALRM, info.si_signo); in TEST()
714 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
719 ASSERT_EQ(0, sigqueue(getpid(), SIGALRM, sigval)); in TEST()
725 ASSERT_EQ(SIGALRM, sigtimedwait(&just_SIGALRM, &info, &timeout)); in TEST()
754 sigaddset(&just_SIGALRM, SIGALRM); in TEST()
832 ScopedSignalHandler sigalrm{SIGALRM}; in TEST()
833 ASSERT_EQ(0, sigignore(SIGALRM)); in TEST()
836 ASSERT_EQ(0, sigaction(SIGALRM, nullptr, &sa)); in TEST()
892 TestSigholdSigpauseSigrelse(SIGALRM); in TEST()
928 ScopedSignalHandler ssh{SIGALRM, signal_handler}; in TEST()
932 raise(SIGALRM); in TEST()
938 sigaddset(&set, SIGALRM); in TEST()
942 ASSERT_EQ(SIG_HOLD, sigset(SIGALRM, signal_handler)); in TEST()
944 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
946 ASSERT_EQ(signal_handler, sigset(SIGALRM, SIG_IGN)); in TEST()
948 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
950 ASSERT_EQ(SIG_IGN, sigset(SIGALRM, SIG_DFL)); in TEST()
952 EXPECT_FALSE(sigismember(&set, SIGALRM)); in TEST()
954 ASSERT_EQ(SIG_DFL, sigset(SIGALRM, SIG_HOLD)); in TEST()
956 EXPECT_TRUE(sigismember(&set, SIGALRM)); in TEST()