diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-26 16:51:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-27 10:48:17 +0200 |
commit | ff0dcf2c4514025f113ed0db9d31c7bcdafcadb1 (patch) | |
tree | 87071e1dbce7dbba5be480603c03bec4a49834ff /testsuites/sptests/spthreadq01 | |
parent | sptests/spnsext01: Add SMP support (diff) | |
download | rtems-ff0dcf2c4514025f113ed0db9d31c7bcdafcadb1.tar.bz2 |
sptests/spthreadq01: Add SMP support
Diffstat (limited to 'testsuites/sptests/spthreadq01')
-rw-r--r-- | testsuites/sptests/spthreadq01/init.c | 8 |
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( |