From 0258ba5b965cda6fdfff8d22cba19e2dac670926 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Jun 2011 13:19:07 +0000 Subject: 2011-06-10 Joel Sherrill * psxtmtest_single/init.c: More meat. --- rtems-test-template/ChangeLog | 4 ++++ rtems-test-template/psxtmtest_single/init.c | 24 ++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'rtems-test-template') diff --git a/rtems-test-template/ChangeLog b/rtems-test-template/ChangeLog index 7c2b957..dca356d 100644 --- a/rtems-test-template/ChangeLog +++ b/rtems-test-template/ChangeLog @@ -1,3 +1,7 @@ +2011-06-10 Joel Sherrill + + * psxtmtest_single/init.c: More meat. + 2011-03-13 Joel Sherrill * psxtest_with_thread/.init.c.swp: Removed. diff --git a/rtems-test-template/psxtmtest_single/init.c b/rtems-test-template/psxtmtest_single/init.c index 86d8ef0..4dcdf9a 100644 --- a/rtems-test-template/psxtmtest_single/init.c +++ b/rtems-test-template/psxtmtest_single/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,10 +18,26 @@ void *POSIX_Init( void *argument ) { + long end_time; + puts( "\n\n*** POSIX TIME TEST @DESC@ ***" ); - /* XXX test code goes here */ - + /* XXX any required initialization goes here */ + + benchmark_timer_initialize(); + + /* XXX single shot operation goes here */ + + end_time = benchmark_timer_read(); + + put_time( + "@DESC@", + end_time, + OPERATION_COUNT, + 0, + 0 + ); + puts( "*** END OF POSIX TIME TEST @DESC@ ***" ); rtems_test_exit(0); @@ -32,7 +48,7 @@ void *POSIX_Init( #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER -#define CONFIGURE_MAXIMUM_POSIX_THREADS 2 +#define CONFIGURE_MAXIMUM_POSIX_THREADS 1 #define CONFIGURE_POSIX_INIT_THREAD_TABLE #define CONFIGURE_INIT -- cgit v1.2.3