From 81fd79daf0a48f51c3ca29c953e029d645fd08fb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 27 Oct 2017 08:52:41 +0200 Subject: 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. --- testsuites/smptests/smppsxaffinity02/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/smptests') 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 ); -- cgit v1.2.3