summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfile01
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/psxtests/psxfile01
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/psxtests/psxfile01')
-rw-r--r--testsuites/psxtests/psxfile01/test.c6
1 files changed, 3 insertions, 3 deletions
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 );