summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-26 02:16:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-26 02:16:03 +0000
commit39385ed5637950d30aeab8040c8957ab338d39bb (patch)
tree253de21373edd65b0aa8952278ad3cb99dd3ec36 /testsuites
parent2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff)
downloadrtems-39385ed5637950d30aeab8040c8957ab338d39bb.tar.bz2
2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* sp29/init.c: Fixed return value evaluation. * sp59/init.c: Added status code assignment. Fixed typos. * sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos. * sp63/init.c: Check return value of _Heap_Initialize().
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog1
-rw-r--r--testsuites/sptests/sp29/init.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 422e89e152..12e704d0a6 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,5 +1,6 @@
2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
+ * sp29/init.c: Fixed return value evaluation.
* sp59/init.c, sp59/sp59.scn: Added status code assignment. Fixed typos.
* sp63/init.c: Check return value of _Heap_Initialize().
diff --git a/testsuites/sptests/sp29/init.c b/testsuites/sptests/sp29/init.c
index 45bc49b770..d13588ea2b 100644
--- a/testsuites/sptests/sp29/init.c
+++ b/testsuites/sptests/sp29/init.c
@@ -82,8 +82,8 @@ rtems_task Init (rtems_task_argument ignored)
puts( "This test only prints on errors." );
ticksPerSecond = rtems_clock_get_ticks_per_second();
- if (sc != RTEMS_SUCCESSFUL) {
- printf ("Can't get ticks per second: %s\n", rtems_status_text (sc));
+ if (ticksPerSecond <= 0) {
+ printf ("Invalid ticks per second: %lu\n", (unsigned long) ticksPerSecond);
exit (1);
}
sc = rtems_semaphore_create (rtems_build_name ('S', 'M', 'r', 'c'),