]> Savannah Git Hosting - gnulib.git/commit
cond tests: Avoid theoretically possible failure.
authorBruno Haible <bruno@clisp.org>
Fri, 28 Jun 2024 20:15:23 +0000 (22:15 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 28 Jun 2024 20:39:49 +0000 (22:39 +0200)
commit08a66f5f3063dae0e79b71683e35f5123799db84
treea95cf219e2e1a75b92e48e19e4ccaeef352e1397
parent60acac06739f191bf433afbfbacbe738e5df3be2
cond tests: Avoid theoretically possible failure.

* tests/test-cnd.c (cnd_wait_routine, cnd_timedwait_routine): Report to
the main thread if this thread comes too late.
(test_cnd_wait, test_cnd_timedwait): Return a 'skipped' value.
(main): Print SKIP instead of OK if the essence of the test was skipped.
* tests/test-cond.c (cond_routine, timedcond_routine): Report to the
main thread if this thread comes too late.
(test_cond, test_timedcond): Return a 'skipped' value.
(main): Print SKIP instead of OK if the essence of the test was skipped.
* tests/test-pthread-cond.c (pthread_cond_wait_routine,
pthread_cond_timedwait_routine): Report to the main thread if this
thread comes too late.
(test_pthread_cond_wait, test_pthread_cond_timedwait): Return a
'skipped' value.
(main): Print SKIP instead of OK if the essence of the test was skipped.
ChangeLog
tests/test-cnd.c
tests/test-cond.c
tests/test-pthread-cond.c