summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 20:50:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 20:50:35 +0000
commitc9460e17ede95c5025d3355e0b5dab61aff050a5 (patch)
treefe633c1a41a94662778547431a2b30e70c7b71ee /testsuites
parent2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-c9460e17ede95c5025d3355e0b5dab61aff050a5.tar.bz2
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c, psxstat/test.c, psxtime/test.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog6
-rw-r--r--testsuites/psxtests/psxfile01/test.c6
-rw-r--r--testsuites/psxtests/psxstat/test.c4
-rw-r--r--testsuites/psxtests/psxtime/test.c2
4 files changed, 12 insertions, 6 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index a60b7147c9..145cc21879 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * psxfile01/test.c, psxstat/test.c, psxtime/test.c: Eliminate test
+ routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new
+ rtems_clock_get_ticks_per_second().
+
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxsignal01/init.c: Convert calls to legacy routine rtems_clock_get(
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index dfc0e364ed..7d3b32126a 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -10,7 +10,7 @@
* /dev
* /dev/XXX [where XXX includes at least console]
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -433,7 +433,7 @@ int main(
ctime2 = buf.st_ctime;
- status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
rewind( file );
while ( fgets(buffer, 128, file) )
printf( "%s", buffer );
@@ -459,7 +459,7 @@ int main(
* Now truncate a file
*/
- status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
puts( "truncate /tmp/j to length of 40" );
status = truncate( "/tmp/j", 40 );
assert( !status );
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 8abcf6826a..41489f9328 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -2,7 +2,7 @@
* This test exercises stat() via fstat() and generates as many of the
* path evaluation cases as possible.
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -27,7 +27,7 @@
#include <pmacros.h>
#define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
-#define TIMEOUT_VALUE ( 5 * TICKS_PER_SECOND )
+#define TIMEOUT_VALUE ( 5 * rtems_clock_get_ticks_per_second() )
/*
diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c
index dec42affcf..efb531d446 100644
--- a/testsuites/psxtests/psxtime/test.c
+++ b/testsuites/psxtests/psxtime/test.c
@@ -84,7 +84,7 @@ void check_a_tod(
a_tm = gmtime( &a_time_t );
printf( "gmtime: %s\n", asctime( a_tm ) );
- status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
i++;