diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-26 02:16:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-26 02:16:03 +0000 |
commit | 39385ed5637950d30aeab8040c8957ab338d39bb (patch) | |
tree | 253de21373edd65b0aa8952278ad3cb99dd3ec36 /testsuites/sptests/sp29/init.c | |
parent | 2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff) | |
download | rtems-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 '')
-rw-r--r-- | testsuites/sptests/sp29/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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'), |