[rtems commit] sp13: Update configuration to account for messages on fourth message queue

Joel Sherril joel at rtems.org
Tue Apr 14 19:08:27 UTC 2015


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Apr 14 14:07:35 2015 -0500

sp13: Update configuration to account for messages on fourth message queue

---

 testsuites/sptests/sp13/system.h | 6 +++++-
 testsuites/sptests/sp13/task1.c  | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/testsuites/sptests/sp13/system.h b/testsuites/sptests/sp13/system.h
index 7bb680c..3b170bf 100644
--- a/testsuites/sptests/sp13/system.h
+++ b/testsuites/sptests/sp13/system.h
@@ -65,10 +65,14 @@ TEST_EXTERN rtems_name Queue_name[ 4 ];      /* array of queue names */
 
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
+/*
+ *  First three created in init.c, last created in task1.c.
+ */
 #define CONFIGURE_MESSAGE_BUFFER_MEMORY \
    CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, MESSAGE_SIZE ) + \
    CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 10, MESSAGE_SIZE ) + \
-   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, MESSAGE_SIZE )
+   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, MESSAGE_SIZE ) + \
+   CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( 100, 20 )
 
 #define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
 
diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c
index e783e37..e104e8d 100644
--- a/testsuites/sptests/sp13/task1.c
+++ b/testsuites/sptests/sp13/task1.c
@@ -267,6 +267,7 @@ rtems_test_pause();
     &Queue_id[ 1 ]
   );
   directive_failed( status, "rtems_message_queue_create of Q1; 20 bytes each" );
+
   status = rtems_message_queue_send( Queue_id[ 1 ], big_send_buffer, 40 );
   fatal_directive_status(status,
     RTEMS_INVALID_SIZE,




More information about the vc mailing list