[haiku-bugs] [Haiku] #16703: THR: Test FAILED - conformance/interfaces/pthread_attr_setstack/2-1.test

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 29 Dec 2020 03:54:55 -0000

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

 Steps
 {{{
 1.  Initialize pthread_attr_t object (attr)
 2.  set the stackaddr and stacksize to attr
 3.  create a thread with the attr
 4.  In the created thread, read the stacksize and stackaddr
 }}}

 NOTE: pthread_getattr_np is not a POSIX compliant API. It is provided by
 nptl, which is developed by Ulrich Drepper.

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

 Expected result: Test PASSED

 Actual Result: got the wrong stacksize and stackaddr: No error (i.e. Test
 Failed)

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

Other related posts: