Opened 3 years ago

Last modified 13 months ago

#16692 new bug

SEM: Test conformance/interfaces/sem_init/7-1.c FAILED

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

Description

This sample test aims to check the following assertion:

sem_init returns -1 and sets errno to ENOSPC if the system lacks a resource or SEM_NSEMS_MAX has been reached.

The steps are:

-> Try and sem_init SEM_NSEMS_MAX semaphores.

-> Try and sem_init an additional semaphore.

The test fails if the last creation does not return an error.

Ref: conformance/interfaces/sem_init/7-1.c

Tested on: Haiku hrev54811 x86_gcc2

Expected result: Test passed

Test result: [01:15:36]Test conformance/interfaces/sem_init/7-1.c FAILED: We were able to sem_init more than SEM_NSEMS_MAX semaphores

Change History (1)

comment:1 by cocobean, 19 months ago

Test INVALID - per UNIX 2003 compliance.

Please close this ticket.

Last edited 13 months ago by cocobean (previous) (diff)
Note: See TracTickets for help on using tickets.