diff options
Diffstat (limited to 'testsuites/libtests/block08/bdbuf_test2_2.c')
-rw-r--r-- | testsuites/libtests/block08/bdbuf_test2_2.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/testsuites/libtests/block08/bdbuf_test2_2.c b/testsuites/libtests/block08/bdbuf_test2_2.c index d9f3489ffd..7f65e692f4 100644 --- a/testsuites/libtests/block08/bdbuf_test2_2.c +++ b/testsuites/libtests/block08/bdbuf_test2_2.c @@ -9,7 +9,7 @@ * Test sequence: * -# Call rtems_bdbuf_read() function in thread #1 and block on * waiting for read complete notification. - * -# Call rtems_bdbuf_read() function in thread #2 for + * -# Call rtems_bdbuf_read() function in thread #2 for * the same block number. As the result it blocks on this read * as well (but it will block on transfer semaphore). * -# Disk device reports success in read complete notification. @@ -62,7 +62,7 @@ bdbuf_test2_2_main() /* * Step 2: - * Thread #2 calls rtems_bdbuf_read() for the same + * Thread #2 calls rtems_bdbuf_read() for the same * block number, as the result it shall block waiting * on buffer state change (waiting on TRANSFER state). */ @@ -121,7 +121,7 @@ bdbuf_test2_2_main() WAIT_DRV_MSG_WR(&msg); SEND_DRV_MSG(0, 0, RTEMS_SUCCESSFUL, 0); - TEST_END(); + TEST_STOP(); } static rtems_task @@ -136,8 +136,8 @@ bdbuf_test2_2_thread1(rtems_task_argument arg) * We will block on this read and meanwhile * thread #2 will try to read the same block. * After blocking on read in thread #2, device - * driver will notify successful completion of - * date transfer, and as the result this call + * driver will notify successful completion of + * date transfer, and as the result this call * will return valid buffer. */ rc = rtems_bdbuf_read(test_dd, TEST_BLK_NUM, &bd); @@ -173,8 +173,8 @@ bdbuf_test2_2_thread2(rtems_task_argument arg) * on data transfer operation, so we will block here as well. * * Step 5: - * On step 4 thread #1 releases buffer and as the result - * our read operation should finish with success. + * On step 4 thread #1 releases buffer and as the result + * our read operation should finish with success. */ rc = rtems_bdbuf_read(test_dd, TEST_BLK_NUM, &bd); if (rc != RTEMS_SUCCESSFUL) @@ -194,5 +194,3 @@ bdbuf_test2_2_thread2(rtems_task_argument arg) } THREAD_END(); } - - |