summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:46:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-05 16:46:00 +0000
commit3f42f12c9f7f87aff6f01b4ff0a52bff1b2c9c29 (patch)
treef24c1e36eb74adefe5845adbc583f7377d37e3d6 /testsuites
parent2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-3f42f12c9f7f87aff6f01b4ff0a52bff1b2c9c29.tar.bz2
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove warnings.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/tmtests/ChangeLog5
-rw-r--r--testsuites/tmtests/tm01/task1.c3
-rw-r--r--testsuites/tmtests/tm02/task1.c12
-rw-r--r--testsuites/tmtests/tm03/task1.c12
-rw-r--r--testsuites/tmtests/tm15/task1.c11
5 files changed, 21 insertions, 22 deletions
diff --git a/testsuites/tmtests/ChangeLog b/testsuites/tmtests/ChangeLog
index a31c93b451..b2da3ce8a3 100644
--- a/testsuites/tmtests/ChangeLog
+++ b/testsuites/tmtests/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove
+ warnings.
+
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1743/cpu
diff --git a/testsuites/tmtests/tm01/task1.c b/testsuites/tmtests/tm01/task1.c
index 11c746b4b2..4d3d9ec2e6 100644
--- a/testsuites/tmtests/tm01/task1.c
+++ b/testsuites/tmtests/tm01/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -115,6 +115,7 @@ rtems_task Test_task(
RTEMS_NO_PRIORITY,
&smid
);
+ directive_failed( status, "rtems_task_create of TA1" );
for ( iterations=OPERATION_COUNT ; iterations ; iterations-- ) {
diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c
index cfa0396043..40740a9fc9 100644
--- a/testsuites/tmtests/tm02/task1.c
+++ b/testsuites/tmtests/tm02/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -121,10 +121,10 @@ rtems_task High_task(
rtems_task_argument argument
)
{
- rtems_status_code status;
+ /* start blocking rtems_semaphore_obtain time */
+ benchmark_timer_initialize();
- benchmark_timer_initialize(); /* start blocking rtems_semaphore_obtain time */
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
@@ -135,9 +135,7 @@ rtems_task Middle_tasks(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
diff --git a/testsuites/tmtests/tm03/task1.c b/testsuites/tmtests/tm03/task1.c
index 3e08169d67..6c3c3425cc 100644
--- a/testsuites/tmtests/tm03/task1.c
+++ b/testsuites/tmtests/tm03/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -118,24 +118,20 @@ rtems_task Middle_tasks(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
);
- status = rtems_semaphore_release( Semaphore_id );
+ (void) rtems_semaphore_release( Semaphore_id );
}
rtems_task High_task(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
- status = rtems_semaphore_obtain(
+ (void) rtems_semaphore_obtain(
Semaphore_id,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT
diff --git a/testsuites/tmtests/tm15/task1.c b/testsuites/tmtests/tm15/task1.c
index fb4c0c2418..ec70e38e1e 100644
--- a/testsuites/tmtests/tm15/task1.c
+++ b/testsuites/tmtests/tm15/task1.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -203,10 +203,8 @@ rtems_task High_tasks(
rtems_task_argument argument
)
{
- rtems_status_code status;
-
if ( time_set )
- status = rtems_event_receive(
+ (void) rtems_event_receive(
RTEMS_EVENT_16,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT,
@@ -214,8 +212,9 @@ rtems_task High_tasks(
);
else {
time_set = true;
- benchmark_timer_initialize(); /* start blocking rtems_event_receive time */
- status = rtems_event_receive(
+ /* start blocking rtems_event_receive time */
+ benchmark_timer_initialize();
+ (void) rtems_event_receive(
RTEMS_EVENT_16,
RTEMS_DEFAULT_OPTIONS,
RTEMS_NO_TIMEOUT,