diff options
Diffstat (limited to 'c/src/tests/tmtests/tm09/task1.c')
-rw-r--r-- | c/src/tests/tmtests/tm09/task1.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/c/src/tests/tmtests/tm09/task1.c b/c/src/tests/tmtests/tm09/task1.c index 27bbc0931e..34ce8b5a11 100644 --- a/c/src/tests/tmtests/tm09/task1.c +++ b/c/src/tests/tmtests/tm09/task1.c @@ -47,6 +47,8 @@ rtems_task Init( directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); } +#define MESSAGE_SIZE (sizeof(long) * 4) + rtems_task Test_task ( rtems_task_argument argument ) @@ -55,7 +57,7 @@ rtems_task Test_task ( rtems_message_queue_create( 1, OPERATION_COUNT, - 16, + MESSAGE_SIZE, RTEMS_DEFAULT_ATTRIBUTES, &Queue_id ); @@ -135,7 +137,7 @@ void queue_test() Timer_initialize(); for ( index=1 ; index <= OPERATION_COUNT ; index++ ) - (void) rtems_message_queue_send( Queue_id, (long (*)[4])buffer, 16 ); + (void) rtems_message_queue_send( Queue_id, buffer, MESSAGE_SIZE ); send_time += Read_timer(); Timer_initialize(); @@ -151,7 +153,7 @@ void queue_test() Timer_initialize(); for ( index=1 ; index <= OPERATION_COUNT ; index++ ) - (void) rtems_message_queue_urgent( Queue_id, (long (*)[4])buffer, 16 ); + (void) rtems_message_queue_urgent( Queue_id, buffer, MESSAGE_SIZE ); urgent_time += Read_timer(); Timer_initialize(); @@ -173,7 +175,7 @@ void queue_test() status = rtems_message_queue_send( Queue_id, (long (*)[4])buffer, - 16 + MESSAGE_SIZE ); directive_failed( status, "rtems_message_queue_send" ); |