Opened 3 years ago

Last modified 13 months ago

#16695 new bug

SEM: Test FAILED - conformance/interfaces/sem_unlink/3-1.c

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

Description

This sample test aims to check the following assertion:

sem_unlink will return -1 and set errno to EACCESS if the process has not priviledge to unlink the sem.

The steps are:

-> open a semaphore with 0744 mask
-> fork
-> change child uid
-> child attempts to unlink the semaphore. It should fail.
-> join the child
-> sem_unlink (should be OK)

The test fails if the child process is able to unlink the semaphore.

Ref: conformance/interfaces/sem_unlink/3-1.c

Expected result: Test passed

Actual Result: [18:27:27]Testing with user 'user' (uid: 0) [18:27:27]sem_unlink did not fail in child[18:27:27]Test conformance/interfaces/sem_unlink/3-1.c FAILED: Test failed in child

Tested on: Haiku hrev54811 x86_gcc2 with Open POSIX Test 1.5.2

Change History (2)

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)

comment:2 by cocobean, 17 months ago

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