summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spthreadq01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spthreadq01/init.c')
-rw-r--r--testsuites/sptests/spthreadq01/init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c
index cb8d495e79..85df6bd15c 100644
--- a/testsuites/sptests/spthreadq01/init.c
+++ b/testsuites/sptests/spthreadq01/init.c
@@ -353,9 +353,7 @@ static rtems_task Init(
TEST_BEGIN();
puts( "Init - _Thread_queue_Extract - thread not blocked on a thread queue" );
- _Thread_Disable_dispatch();
- _Thread_queue_Extract( _Thread_Executing );
- _Thread_Enable_dispatch();
+ _Thread_queue_Extract( _Thread_Get_executing() );
/* is there more to check? */
test_context_init(ctx);