summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smp08
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-03 11:24:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-02-03 11:25:04 +0100
commit239dd35fcea5c1572436820ec7f6956500110f0e (patch)
tree8e1570dd31c102866d7d11b7b440e93ba31c703d /testsuites/smptests/smp08
parentPrefix confdefs.h internal def with an underscore (diff)
downloadrtems-239dd35fcea5c1572436820ec7f6956500110f0e.tar.bz2
smptests: Fix warnings
Diffstat (limited to 'testsuites/smptests/smp08')
-rw-r--r--testsuites/smptests/smp08/init.c4
-rw-r--r--testsuites/smptests/smp08/tasks.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/testsuites/smptests/smp08/init.c b/testsuites/smptests/smp08/init.c
index d35f5186fb..85003929f5 100644
--- a/testsuites/smptests/smp08/init.c
+++ b/testsuites/smptests/smp08/init.c
@@ -43,7 +43,7 @@ rtems_task Init(
{
rtems_status_code status;
rtems_time_of_day time;
- int i;
+ uint32_t i;
char ch[4];
rtems_id id;
@@ -78,7 +78,7 @@ rtems_task Init(
for ( i=1; i <= rtems_get_processor_count() *3; i++ ) {
- sprintf(ch, "%02" PRId32, i );
+ sprintf(ch, "%02" PRIu32, i );
status = rtems_task_create(
rtems_build_name( 'T', 'A', ch[0], ch[1] ),
2,
diff --git a/testsuites/smptests/smp08/tasks.c b/testsuites/smptests/smp08/tasks.c
index deda4bfe63..40a097d034 100644
--- a/testsuites/smptests/smp08/tasks.c
+++ b/testsuites/smptests/smp08/tasks.c
@@ -21,7 +21,6 @@ rtems_task Test_task(
rtems_time_of_day time;
uint32_t task_index;
rtems_status_code status;
- uint32_t cpu_num;
char name[5];
char *p;
@@ -30,13 +29,11 @@ rtems_task Test_task(
rtems_test_assert( p != NULL );
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
+ rtems_test_assert( status == RTEMS_SUCCESSFUL );
task_index = task_number( tid );
for ( ; ; ) {
-
- /* Get the CPU Number */
- cpu_num = rtems_get_current_processor();
-
status = rtems_clock_get_tod( &time );
+ rtems_test_assert( status == RTEMS_SUCCESSFUL );
if ( time.second >= 35 ) {
TEST_END();
rtems_test_exit( 0 );
@@ -45,5 +42,6 @@ rtems_task Test_task(
PrintTaskInfo( p, &time );
status = rtems_task_wake_after(
task_index * 5 * rtems_clock_get_ticks_per_second() );
+ rtems_test_assert( status == RTEMS_SUCCESSFUL );
}
}