#4878 closed defect (fixed)

sptests/spsysinit01 sem_open call only has 3 parameters with O_CREAT flag (cloned)

Reported by: Lucian-Raul Silistru Owned by: Sebastian Huber
Priority: normal Milestone: 6.1
Component: test Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Cloned from #4877:


When calling sem_open with the O_CREAT flag the sem_open function requires 4 parameters. It will:
value = va_arg(args, unsigned int);
so the "value" argument will be randomly chosen.

sem_open can fail if the random value is not a valid semaphore value, failing the test.

Change History (1)

comment:1 Changed on 03/14/23 at 06:43:33 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 377eae4/rtems:

spsysinit01: Fix sem_open() call

The O_CREAT flag requires a mode and initial value as third and fourth
argument.

Close #4878.

Note: See TracTickets for help on using tickets.