Branch
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-cond.c
tests/virtualbox.h
tests/macros.h
Depends-on:
pthread-thread
pthread-mutex
nanosleep
sched_yield
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
Makefile.am:
TESTS += test-pthread-cond
check_PROGRAMS += test-pthread-cond
test_pthread_cond_LDADD = $(LDADD) @LIBPMULTITHREAD@ @SCHED_YIELD_LIB@