Opened 5 years ago

Closed 4 years ago

#15284 closed bug (duplicate)

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: #15280 Blocking:
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 (5)

comment:1 by cocobean, 5 years 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 5 years ago by cocobean (previous) (diff)

comment:2 by waddlesplash, 5 years 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, 5 years ago

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

Version 0, edited 5 years ago by cocobean (next)

comment:4 by cocobean, 4 years ago

Please close this ticket. Consolidated to ticket #15280.

comment:5 by korli, 4 years ago

Blocked By: 15280 added
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.