#16702: THR: Test FAILED - conformance/interfaces/pthread_cond_signal/1-1.test
-------------------------------------------------+-------------------------
Reporter: cocobean | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone:
| Unscheduled
Component: System/POSIX | Version:
| R1/Development
Keywords: POSIX, pthread, pthread_cond_signal | Blocked By:
Blocking: | Platform: All
-------------------------------------------------+-------------------------
This sample test aims to check the following assertion:
pthread_cond_signal() unblocks at least one thread which is blocked
on the conditional variable, if any.
The steps are:
-> Create a lot of threads/process which will wait on a condition variable
-> Cascade-signal the condition and check that all threads/processes are
awaken.
The test will fail when the threads are not terminated within a certain
duration.
Ref:
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_cond_signal/1-1.c
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_cond_signal/1-2.c
Expected result: Test passed
Actual Result: [Main thread] had to signal the condition 10 times to wake
up 3 threads
Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2
--
Ticket URL: <https://dev.haiku-os.org/ticket/16702>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.