pthread_wip
This commit is contained in:
@@ -32,14 +32,18 @@ TESTS_C+= t_once
|
||||
TESTS_C+= t_preempt
|
||||
TESTS_SH+= t_resolv
|
||||
TESTS_C+= t_rwlock
|
||||
.if !defined(__MINIX)
|
||||
TESTS_C+= t_sem
|
||||
.endif # !defined(__MINIX)
|
||||
TESTS_C+= t_sigmask
|
||||
TESTS_C+= t_sigsuspend
|
||||
TESTS_C+= t_siglongjmp
|
||||
TESTS_C+= t_sleep
|
||||
TESTS_C+= t_swapcontext
|
||||
|
||||
.if !defined(__MINIX)
|
||||
LDADD.t_sem+= -lrt
|
||||
.endif # !defined(__MINIX)
|
||||
|
||||
BINDIR= ${TESTSDIR}
|
||||
PROGS= h_atexit
|
||||
|
||||
@@ -163,7 +163,9 @@ ATF_TC_BODY(once3, tc)
|
||||
|
||||
act.sa_sigaction = handler;
|
||||
sigemptyset(&act.sa_mask);
|
||||
#if !defined(__minix)
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
#endif /* !defined(__minix) */
|
||||
sigaction(SIGALRM, &act, NULL);
|
||||
|
||||
timerclear(&it.it_value);
|
||||
|
||||
@@ -111,13 +111,17 @@ ATF_TC_BODY(before_threads, tc)
|
||||
act.sa_sigaction = upcalls_not_started_handler1;
|
||||
sigemptyset(&act.sa_mask);
|
||||
sigaddset(&act.sa_mask, SIGUSR2);
|
||||
#if !defined(__minix)
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
#endif /* !defined(__minix) */
|
||||
|
||||
ATF_REQUIRE_EQ(sigaction(SIGUSR1, &act, NULL), 0);
|
||||
|
||||
act.sa_sigaction = upcalls_not_started_handler2;
|
||||
sigemptyset(&act.sa_mask);
|
||||
#if !defined(__minix)
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
#endif /* !defined(__minix) */
|
||||
(void)sigaction(SIGUSR2, &act, NULL);
|
||||
|
||||
kill(getpid(), SIGUSR1);
|
||||
@@ -182,13 +186,17 @@ ATF_TC_BODY(respected_while_running, tc)
|
||||
act.sa_sigaction = respected_while_running_handler1;
|
||||
sigemptyset(&act.sa_mask);
|
||||
sigaddset(&act.sa_mask, SIGUSR2);
|
||||
#if !defined(__minix)
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
#endif /* !defined(__minix) */
|
||||
|
||||
ATF_REQUIRE_EQ(sigaction(SIGUSR1, &act, NULL), 0);
|
||||
|
||||
act.sa_sigaction = respected_while_running_handler2;
|
||||
sigemptyset(&act.sa_mask);
|
||||
#if !defined(__minix)
|
||||
act.sa_flags = SA_SIGINFO;
|
||||
#endif /* !defined(__minix) */
|
||||
(void)sigaction(SIGUSR2, &act, NULL);
|
||||
|
||||
PTHREAD_REQUIRE(pthread_create(&thread, NULL,
|
||||
|
||||
Reference in New Issue
Block a user