<div dir="ltr">The test does verify the values. I don't see a specific case of creating a thread<div>with a non-standard stack value and verifying that value in the task but the</div><div>test creates a thread which retrieves its values and verifies many (most, all?)</div><div>of them:</div><div><br></div><div><div>(gdb) </div><div>Thread - pthread_getattr_np - Verify value</div><div>46        sc = pthread_getattr_np( Thread_id, &attr );</div><div>(gdb) </div><div>47        rtems_test_assert( sc == 0 );</div><div>(gdb) </div><div>52        puts( "Thread - pthread_setschedparam: Setting highest priority SCHED_FIFO" );</div><div>(gdb) p attr</div><div>$1 = {is_initialized = 1, stackaddr = 0x0, stacksize = 8192, </div><div>  contentionscope = 0, inheritsched = 2, schedpolicy = 2, schedparam = {</div><div>    sched_priority = 3, sched_ss_low_priority = 285216961, </div><div>    sched_ss_repl_period = {tv_sec = 0, tv_nsec = 16}, </div><div>    sched_ss_init_budget = {tv_sec = 0, tv_nsec = 1}, sched_ss_max_repl = 0}, </div><div>  guardsize = 0, cputime_clock_allowed = 1, detachstate = 1, </div><div>  affinitysetsize = 0, affinityset = 0x0, affinitysetpreallocated = {</div><div>    __bits = {0}}}</div></div><div><br></div><div>Clearly the attribute structure returned is not all zero.</div><div><br></div><div>I am not sure what you are seeing but it doesn't match what I see in</div><div>this test on the erc32.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 4:04 AM, <a href="mailto:xuelin.tian@qkmtech.com">xuelin.tian@qkmtech.com</a> <span dir="ltr"><<a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span>OK, no problem, thanks anyway.</div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div>Best wishes,</div><div><a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a></div></div></span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>From:</b> <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">Sebastian Huber</a></div><div><b>Date:</b> 2017-09-22 16:58</div><span class=""><div><b>To:</b> <a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a>; <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a></div><div><b>Subject:</b> Re: pthread_getattr_np does not work</div></span></div></div><span class=""><div><div>On 22/09/17 10:55, <a href="mailto:xuelin.tian@qkmtech.com" target="_blank">xuelin.tian@qkmtech.com</a> wrote:</div>
<div> </div>
<div>> OK, I will try to do some fix on this function. And if Sherrill and </div>
<div>> you have time, please take some time on this. Thanks a lot.</div>
<div> </div>
<div>No, sorry. I have no time to fix this.</div>
<div> </div>
<div>-- </div>
<div>Sebastian Huber, embedded brains GmbH</div>
<div> </div>
<div>Address : Dornierstr. 4, D-82178 Puchheim, Germany</div>
<div>Phone   : +49 89 189 47 41-16</div>
<div>Fax     : +49 89 189 47 41-09</div>
<div>E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<wbr>brains.de</a></div>
<div>PGP     : Public key available on request.</div>
<div> </div>
<div>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.</div>
</div></span></blockquote>
</div><br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a><br></blockquote></div><br></div>