[rtems commit] spintrcritical22: Use right thread wait flags

Sebastian Huber sebh at rtems.org
Fri Aug 21 11:49:16 UTC 2020


Module:    rtems
Branch:    master
Commit:    1a506170ccc5031f6ee34c6a60a7dbf6e14eb052
Changeset: http://git.rtems.org/rtems/commit/?id=1a506170ccc5031f6ee34c6a60a7dbf6e14eb052

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Aug 21 13:46:21 2020 +0200

spintrcritical22: Use right thread wait flags

---

 testsuites/sptests/spintrcritical22/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/sptests/spintrcritical22/init.c b/testsuites/sptests/spintrcritical22/init.c
index a73499c..192a5a9 100644
--- a/testsuites/sptests/spintrcritical22/init.c
+++ b/testsuites/sptests/spintrcritical22/init.c
@@ -61,7 +61,7 @@ static T_interrupt_test_state release_semaphore(void *arg)
     sem = &ctx->semaphore_control->Core_control.Semaphore;
     rtems_test_assert(sem->count == 0);
   } else {
-    if (flags == (THREAD_WAIT_CLASS_EVENT | THREAD_WAIT_STATE_BLOCKED)) {
+    if (flags == (THREAD_WAIT_CLASS_OBJECT | THREAD_WAIT_STATE_BLOCKED)) {
       state = T_INTERRUPT_TEST_LATE;
     } else {
       state = T_INTERRUPT_TEST_EARLY;



More information about the vc mailing list