summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmtests/tm10
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-17 19:36:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-08-17 19:36:43 +0000
commit4b374f36e7172d59d6d8c252973c1ef65637ecbb (patch)
treed6be1084c310d24004e9b056eebdac6c286a4f25 /c/src/tests/tmtests/tm10
parentadded tty driver to simhppa (diff)
downloadrtems-4b374f36e7172d59d6d8c252973c1ef65637ecbb.tar.bz2
maximum number of messages removed and include statement cleanup
Diffstat (limited to 'c/src/tests/tmtests/tm10')
-rw-r--r--c/src/tests/tmtests/tm10/system.h12
-rw-r--r--c/src/tests/tmtests/tm10/task1.c11
2 files changed, 15 insertions, 8 deletions
diff --git a/c/src/tests/tmtests/tm10/system.h b/c/src/tests/tmtests/tm10/system.h
index 9133506e7f..9c59593710 100644
--- a/c/src/tests/tmtests/tm10/system.h
+++ b/c/src/tests/tmtests/tm10/system.h
@@ -10,14 +10,12 @@
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
- * $Id$
+ * system.h,v 1.2 1995/05/31 17:15:37 joel Exp
*/
-#include <rtems.h>
+#include <coverhd.h>
+#include <tmacros.h>
-#include "coverhd.h"
-#include "tmacros.h"
-
-#include "timesys.h"
-#include "timegvar.h"
+#include <timesys.h>
+#include <timegvar.h>
diff --git a/c/src/tests/tmtests/tm10/task1.c b/c/src/tests/tmtests/tm10/task1.c
index 788c2cd1f7..9ed9fc129e 100644
--- a/c/src/tests/tmtests/tm10/task1.c
+++ b/c/src/tests/tmtests/tm10/task1.c
@@ -8,7 +8,7 @@
* to the copyright license under the clause at DFARS 252.227-7013. This
* notice must appear in all copies of this file and its derivatives.
*
- * $Id$
+ * task1.c,v 1.2 1995/05/31 17:15:39 joel Exp
*/
#include "system.h"
@@ -51,6 +51,7 @@ rtems_task Init(
void test_init()
{
rtems_unsigned32 index;
+ rtems_unsigned32 size;
rtems_task_entry task_entry;
rtems_status_code status;
rtems_task_priority priority;
@@ -82,6 +83,7 @@ void test_init()
status = rtems_message_queue_create(
1,
OPERATION_COUNT,
+ 16,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -97,6 +99,7 @@ void test_init()
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
+ &size,
RTEMS_NO_WAIT,
RTEMS_NO_TIMEOUT
);
@@ -116,10 +119,13 @@ rtems_task High_task(
rtems_task_argument argument
)
{
+ rtems_unsigned32 size;
+
Timer_initialize();
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
+ &size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
@@ -129,9 +135,12 @@ rtems_task Middle_tasks(
rtems_task_argument argument
)
{
+ rtems_unsigned32 size;
+
(void) rtems_message_queue_receive(
Queue_id,
(long (*)[4]) Buffer,
+ &size,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);