Changeset 0bf2f75 in rtems-testing


Ignore:
Timestamp:
Jul 12, 2011, 1:20:03 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
e264777
Parents:
e7638a5
Message:

2011-07-12 Joel Sherrill <joel.sherrill@…>

  • psxtmtest_single/init.c: Fix operation count and move timing to method.
Location:
rtems-test-template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-test-template/ChangeLog

    re7638a5 r0bf2f75  
     12011-07-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxtmtest_single/init.c: Fix operation count and move timing to
     4        method.
     5
    162011-06-30      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • rtems-test-template/psxtmtest_single/init.c

    re7638a5 r0bf2f75  
    1818#include "test_support.h"
    1919
     20void benchmark_NAME_OF_OPERATION(void)
     21{
     22  long end_time;
     23  int  status;
     24
     25  benchmark_timer_initialize();
     26    /* XXX single shot operation goes here -- test expected status outside */
     27    /* XXX of the benchmark'ed region */
     28  end_time = benchmark_timer_read();
     29  rtems_test_assert( status == 0 );
     30
     31  put_time(
     32    "@DESC@",
     33    end_time,
     34    1,        /* Only executed once */
     35    0,
     36    0
     37  );
     38
     39}
     40
    2041void *POSIX_Init(
    2142  void *argument
    2243)
    2344{
    24   long end_time;
    2545
    2646  puts( "\n\n*** POSIX TIME TEST @UPPER@ ***" );
     
    2848  /* XXX any required initialization goes here */
    2949
    30   benchmark_timer_initialize();
    31 
    32   /* XXX single shot operation goes here */
    33 
    34   end_time = benchmark_timer_read();
    35 
    36   put_time(
    37     "@DESC@",
    38     end_time,
    39     OPERATION_COUNT,
    40     0,
    41     0
    42   );
    43 
     50  benchmark_NAME_OF_OPERATION();
     51 
    4452  puts( "*** END OF POSIX TIME TEST @UPPER@ ***" );
    4553
Note: See TracChangeset for help on using the changeset viewer.