Opened 4 years ago

Closed 4 months ago

#16722 closed bug (fixed)

THR: Test FAILED - conformance/interfaces/pthread_barrier_init/3-1.test

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

Description

The pthread_barrier_init( ) function shall fail if [EINVAL] The value specified by count is equal to zero.

Ref: https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_barrier_init/3-1.c

Expected result: Test passed

Actual Result: Test FAILED: pthread_barrier_init() does not return EINVAL when intializing a barrier with count=0, return code -2147483643, Invalid Argument

Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2

Change History (2)

comment:1 by cocobean, 2 years ago

Optional - per UNIX 2003 compliance. Please close this ticket.

comment:2 by waddlesplash, 4 months ago

Keywords: POSIX pthreads pthread_barrier_init removed
Resolution: fixed
Status: newclosed

Not sure how this failed before as pthread_barrier_init always checked for it. But it seems to pass now.

Note: See TracTickets for help on using tickets.