[haiku-bugs] Re: [Haiku] #15284: POSIX testsuite fork interface fails

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 21 Aug 2019 19:02:36 -0000

#15284: POSIX testsuite fork interface fails
----------------------------+----------------------------
   Reporter:  cocobean      |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:  posix
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by cocobean):

 {{{
 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).
 }}}

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15284#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: