diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-27 08:52:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-02 11:23:17 +0100 |
commit | 81fd79daf0a48f51c3ca29c953e029d645fd08fb (patch) | |
tree | 3e443a0361234788cc5f4bca480a57730770efcd /testsuites | |
parent | bsp: Make riscv_generic work for both riscv32 and riscv64 - v2 (diff) | |
download | rtems-81fd79daf0a48f51c3ca29c953e029d645fd08fb.tar.bz2 |
smppsxaffinity02: Fix thread attribute usage
The pthread_getattr_np() returns now the stack address and size. Do not
use this stack for the new threads.
Update #2514.
Update #3145.
Update #3168.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/smptests/smppsxaffinity02/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuites/smptests/smppsxaffinity02/init.c b/testsuites/smptests/smppsxaffinity02/init.c index 21a723d41b..2d6dc10bc3 100644 --- a/testsuites/smptests/smppsxaffinity02/init.c +++ b/testsuites/smptests/smppsxaffinity02/init.c @@ -113,6 +113,10 @@ void Validate_affinity(void ) puts( "Init - Set Init priority to high"); sc = pthread_getattr_np( Init_id, &attr ); rtems_test_assert( sc == 0 ); + + sc = pthread_attr_setstack( &attr, NULL, 0 ); + rtems_test_assert( sc == 0 ); + sc = pthread_attr_getschedparam( &attr, ¶m ); rtems_test_assert( sc == 0 ); param.sched_priority = sched_get_priority_max( SCHED_FIFO ); |