summaryrefslogtreecommitdiff
path: root/rtems-test-template
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-10 13:19:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-10 13:19:07 +0000
commit0258ba5b965cda6fdfff8d22cba19e2dac670926 (patch)
tree0736a7526beadb419cd64bb7349722d84d5e571e /rtems-test-template
parent3cf0e1ee5779eb37223844a27f81d25ef26bdff1 (diff)
2011-06-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtmtest_single/init.c: More meat.
Diffstat (limited to 'rtems-test-template')
-rw-r--r--rtems-test-template/ChangeLog4
-rw-r--r--rtems-test-template/psxtmtest_single/init.c24
2 files changed, 24 insertions, 4 deletions
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 <joel.sherrill@oarcorp.com>
+
+ * psxtmtest_single/init.c: More meat.
+
2011-03-13 Joel Sherrill <joel.sherrilL@OARcorp.com>
* 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