Opened 4 months ago

Last modified 4 months ago

#15284 new bug

POSIX testsuite fork interface fails

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

Description

Ref: ​https://github.com/haiku/open_posix_testsuite

Open POSIX Testsuite 1.5.2 on Haiku hrev53379

Issue: fork interface test failures

conformance/interfaces/fork/17-1: build: FAILED 
conformance/interfaces/fork/17-2: build: FAILED 
conformance/interfaces/fork/19-1: build: FAILED 
conformance/interfaces/fork/22-1: build: FAILED 
conformance/interfaces/fork/7-1: build: FAILED

Change History (3)

comment:1 by cocobean, 4 months ago

conformance/interfaces/fork/11-1: execution: HUNG
* This sample test aims to check the following assertion:

  The file locks are not inherited by the child process.

* The steps are:
 -> lock stdout
 -> fork
 -> child creates a thread
 -> child thread trylock stdout
 -> join the child

* The test fails if the child thread cannot lock the file 
  -- this would mean the child process got stdout file lock ownership.
conformance/interfaces/fork/1-1: execution: FAILED 
 * This sample test aims to check the following assertion:
 
   fork() creates a new process.
 
 * The steps are:
   -> create a new process
   -> the parent and the child sleep 1 sec (check concurrent execution)
   -> the child posts a semaphore, the parents waits for thsi semaphore
      (check the child really executes)
   -> join and check that total execution time is < 2 sec.
 
 * The test fails if the duration is > 2 seconds or if semaphore is not posted.
conformance/interfaces/fork/12-1: execution: FAILED 
* This sample test aims to check the following assertion:

  The child process is created with no pending signal

* The steps are:
 -> block SIGUSR1 and SIGUSR2
 -> send those signals and wait they are pending
 -> fork
 -> check the signals are blocked but not pending in the new process.

* The test fails if the signals are pending or if 
 they are not blocked (this counters assertion 2).
Last edited 4 months ago by cocobean (previous) (diff)

comment:2 by waddlesplash, 4 months ago

The number of tickets you are opening for this is getting unmanageable, we should probably close all but one and consolidate them.

comment:3 by cocobean, 4 months ago

The Open POSIX 1.5.2 testsuite tickets are now complete based all of the current tests ran on Haiku hrev53379. Feel free to consolidate them as needed for easy management and review.

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