Opened 4 years ago

Closed 2 years ago

#16702 closed bug (fixed)

THR: Test FAILED - conformance/interfaces/pthread_cond_signal/1-1.test

Reported by: cocobean Owned by: nobody
Priority: normal Milestone: R1/beta4
Component: System/POSIX Version: R1/Development
Keywords: POSIX, pthread, pthread_cond_signal Cc:
Blocked By: Blocking:
Platform: All

Description

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

Change History (3)

comment:1 by cocobean, 4 years ago

Test passed on R1B2 x86 (+123). No work needed. Please close this ticket.

Version 0, edited 4 years ago by cocobean (next)

comment:2 by cocobean, 2 years ago

Tested on hrev56459 x64. Resolved. Please close this ticket.

comment:3 by waddlesplash, 2 years ago

Milestone: UnscheduledR1/beta4
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.