Hash :
740f873e
Author :
Date :
2024-06-29T13:28:14
tests: Avoid test failures due to VirtualBox specific bug. * tests/virtualbox.h: New file. * tests/test-pthread-cond.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * tests/test-cnd.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * tests/test-cond.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * tests/test-pthread_sigmask1.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * tests/test-pthread_sigmask2.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * tests/test-sigprocmask.c: Include virtualbox.h. (main): Skip the test under VirtualBox with KVM paravirtualization and more than 1 CPU. * modules/pthread-cond-tests (Files): Add tests/virtualbox.h. * modules/cnd-tests (Files): Likewise. * modules/cond-tests (Files): Likewise. * modules/pthread_sigmask-tests (Files): Likewise. * modules/sigprocmask-tests (Files): Likewise.
Files:
tests/test-pthread_sigmask1.c
tests/test-pthread_sigmask2.c
tests/signature.h
tests/virtualbox.h
tests/macros.h
Depends-on:
inttypes
sleep
pthread-thread
test-xfail
configure.ac:
Makefile.am:
# Work around https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57214
if !OS_IS_NETBSD
TESTS += test-pthread_sigmask1
endif
TESTS += test-pthread_sigmask2
check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
test_pthread_sigmask1_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@
test_pthread_sigmask2_LDADD = $(LDADD) @PTHREAD_SIGMASK_LIB@ @LIBMULTITHREAD@