summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-26 16:51:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-27 10:48:17 +0200
commitff0dcf2c4514025f113ed0db9d31c7bcdafcadb1 (patch)
tree87071e1dbce7dbba5be480603c03bec4a49834ff /testsuites
parentsptests/spnsext01: Add SMP support (diff)
downloadrtems-ff0dcf2c4514025f113ed0db9d31c7bcdafcadb1.tar.bz2
sptests/spthreadq01: Add SMP support
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/spthreadq01/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c
index 9924b18745..3b6d2fc99e 100644
--- a/testsuites/sptests/spthreadq01/init.c
+++ b/testsuites/sptests/spthreadq01/init.c
@@ -29,13 +29,17 @@ void threadq_first_empty(
)
{
Thread_queue_Control tq;
+ bool we_did_it;
printf( "Init - initialize thread queue for %s\n", discipline_string );
_Thread_queue_Initialize( &tq, discipline, 0x01, 3 );
puts( "Init - _Thread_queue_Extract - thread not blocked on a thread queue" );
- _Thread_queue_Extract( &tq, _Thread_Get_executing() );
- /* is there anything to check? */
+ _Thread_Disable_dispatch();
+ we_did_it = _Thread_queue_Extract( &tq, _Thread_Executing );
+ _Thread_Enable_dispatch();
+ rtems_test_assert( !we_did_it );
+ /* is there more to check? */
}
rtems_task Init(