[haiku-bugs] [Haiku] #16707: THR: Test FAILED - conformance/interfaces/pthread_detach/4-2.test

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 29 Dec 2020 04:24:45 -0000

#16707: THR: Test FAILED - conformance/interfaces/pthread_detach/4-2.test
---------------------------------------------+-----------------------------
 Reporter:  cocobean                         |       Owner:  nobody
     Type:  bug                              |      Status:  new
 Priority:  normal                           |   Milestone:  Unscheduled
Component:  System/POSIX                     |     Version:  R1/Development
 Keywords:  POSIX, pthreads, pthread_detach  |  Blocked By:
 Blocking:                                   |    Platform:  All
---------------------------------------------+-----------------------------
 Test that pthread_detach()

 Upon failure, it shall return an error number:
 -[EINVAL] The implemenation has detected that the value specified by
 'thread' does not refer to a joinable thread.

 -[ESRCH] No thread could be found corresponding to that thread. It shall
 not return an error code of [EINTR]

 STEPS:
 {{{
 1. Create a thread.
 2. Wait 'till the thread exits.
 3. Try and detach this thread.
 4. Check the return value and make sure it is ESRCH
 }}}

 Ref:
 
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_detach/4-2.c

 Expected result: Test passed

 Actual Result: Test failed. Incorrect error code: 0 instead of ESRCH

 Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16707>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: