diff options
-rw-r--r-- | c/src/tests/sptests/sp29/init.c | 4 | ||||
-rw-r--r-- | testsuites/sptests/sp29/init.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/c/src/tests/sptests/sp29/init.c b/c/src/tests/sptests/sp29/init.c index b8a0193ef2..bf866bd32e 100644 --- a/c/src/tests/sptests/sp29/init.c +++ b/c/src/tests/sptests/sp29/init.c @@ -145,8 +145,8 @@ rtems_task Init (rtems_task_argument ignored) printf ("%d: Can't obtain non-recursive-lock semaphore: %s\n", __LINE__, rtems_status_text (sc)); } /* - * Since this task is holding this, there is no reason to block. - * It is obviously an error to reobtain it. + * Since this task is holding this, this task will block and timeout. + * Then the timeout error will be returned. */ rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, 5); diff --git a/testsuites/sptests/sp29/init.c b/testsuites/sptests/sp29/init.c index b8a0193ef2..bf866bd32e 100644 --- a/testsuites/sptests/sp29/init.c +++ b/testsuites/sptests/sp29/init.c @@ -145,8 +145,8 @@ rtems_task Init (rtems_task_argument ignored) printf ("%d: Can't obtain non-recursive-lock semaphore: %s\n", __LINE__, rtems_status_text (sc)); } /* - * Since this task is holding this, there is no reason to block. - * It is obviously an error to reobtain it. + * Since this task is holding this, this task will block and timeout. + * Then the timeout error will be returned. */ rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then); sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, 5); |