Changes between Version 1 and Version 2 of Ticket #16707


Ignore:
Timestamp:
Nov 6, 2024, 2:53:05 PM (9 days ago)
Author:
cocobean
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16707 – Description

    v1 v2  
    1 Test that pthread_detach()
    2  
    3 Upon failure, it shall return an error number:
     1pthread_create and pthread_detach implementations in Haiku R1b5 must
     2pass these OpenPOSIX tests for UNIX 03/POSIX.1-2008 mandatory compliance:
    43
    5 -[EINVAL] The implemenation has detected that the value specified by 'thread' does not refer to a joinable thread.
    6 
    7 -[ESRCH] No thread could be found corresponding to that thread. It shall not return an error code of [EINTR]
    8 
    9 STEPS:
    104{{{
    11 1. Create a thread.
    12 2. Wait 'till the thread exits.
    13 3. Try and detach this thread.
    14 4. Check the return value and make sure it is ESRCH
     5conformance/interfaces/pthread_create/2-1: execution: FAILED
     6conformance/interfaces/pthread_detach/4-2: execution: FAILED
    157}}}
    168
    17 Ref: https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_detach/4-2.c
    18 
    19 Expected result: Test passed
    20 
    21 Actual Result: Test failed. Incorrect error code: 0 instead of ESRCH
    22 
    23 Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2
     9Tested on: Haiku hrev58305 x86 with Open POSIX Test Suite 1.5.2