summaryrefslogtreecommitdiffstats
path: root/c/src/tests/tmtests/tm14
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 15:00:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-12 15:00:15 +0000
commitdf49c60c9671e4a28e636964d744c1f59fb6cb68 (patch)
treeeabd85e189514ad412a35414ba5d483dcda3ef1f /c/src/tests/tmtests/tm14
parentPurged as many egcs references as possible. (diff)
downloadrtems-df49c60c9671e4a28e636964d744c1f59fb6cb68.tar.bz2
Merged from 4.5.0-beta3a
Diffstat (limited to 'c/src/tests/tmtests/tm14')
-rw-r--r--c/src/tests/tmtests/tm14/Makefile.am7
-rw-r--r--c/src/tests/tmtests/tm14/system.h6
-rw-r--r--c/src/tests/tmtests/tm14/task1.c5
3 files changed, 9 insertions, 9 deletions
diff --git a/c/src/tests/tmtests/tm14/Makefile.am b/c/src/tests/tmtests/tm14/Makefile.am
index 41fb6c1db6..72f9c05e5d 100644
--- a/c/src/tests/tmtests/tm14/Makefile.am
+++ b/c/src/tests/tmtests/tm14/Makefile.am
@@ -1,8 +1,9 @@
-##
+##
## $Id$
-##
+##
AUTOMAKE_OPTIONS = foreign 1.4
+
TEST = tm14
MANAGERS = io message
@@ -11,7 +12,7 @@ C_FILES = task1.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
H_FILES = system.h
-noinst_HEADERS =$(H_FILES)
+noinst_HEADERS = $(H_FILES)
DOCTYPES = doc
DOCS = $(DOCTYPES:%=$(TEST).%)
diff --git a/c/src/tests/tmtests/tm14/system.h b/c/src/tests/tmtests/tm14/system.h
index bed2533a81..d3f219713a 100644
--- a/c/src/tests/tmtests/tm14/system.h
+++ b/c/src/tests/tmtests/tm14/system.h
@@ -26,10 +26,8 @@ rtems_task Init(
/* configuration information */
-#define CONFIGURE_TMTEST
-
-#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
-#define CONFIGURE_TEST_NEEDS_TIMER_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 111
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
diff --git a/c/src/tests/tmtests/tm14/task1.c b/c/src/tests/tmtests/tm14/task1.c
index fc84f6c19e..c368ca15be 100644
--- a/c/src/tests/tmtests/tm14/task1.c
+++ b/c/src/tests/tmtests/tm14/task1.c
@@ -29,6 +29,7 @@ rtems_task Low_tasks(
rtems_task_argument argument
);
+#define MESSAGE_SIZE (sizeof(long) * 4)
rtems_task Init(
rtems_task_argument argument
@@ -72,7 +73,7 @@ rtems_task test_init(
status = rtems_message_queue_create(
rtems_build_name( 'M', 'Q', '1', ' ' ),
OPERATION_COUNT,
- 16,
+ MESSAGE_SIZE,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id
);
@@ -114,7 +115,7 @@ rtems_task High_task(
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 );
end_time = Read_timer();
put_time(