diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-14 21:34:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-14 21:34:15 +0000 |
commit | dcb1407d43e1a3dcd25153d182adc26b79187eb6 (patch) | |
tree | 0a172a8050d4491bea81f0f0ce994ead1c979eab | |
parent | 2009-10-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-dcb1407d43e1a3dcd25153d182adc26b79187eb6.tar.bz2 |
2009-10-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* tmck/task1.c: Ignore numbers that are too large but keep going -- do
not abort.
-rw-r--r-- | testsuites/tmtests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/tmtests/tmck/task1.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/testsuites/tmtests/ChangeLog b/testsuites/tmtests/ChangeLog index b6f6219779..bd6cab92eb 100644 --- a/testsuites/tmtests/ChangeLog +++ b/testsuites/tmtests/ChangeLog @@ -1,3 +1,8 @@ +2009-10-14 Joel Sherrill <joel.sherrill@OARcorp.com> + + * tmck/task1.c: Ignore numbers that are too large but keep going -- do + not abort. + 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org> * tmck/task1.c: Remove support for "unix". diff --git a/testsuites/tmtests/tmck/task1.c b/testsuites/tmtests/tmck/task1.c index 8650b96051..ee93c35274 100644 --- a/testsuites/tmtests/tmck/task1.c +++ b/testsuites/tmtests/tmck/task1.c @@ -147,7 +147,7 @@ void check_read_timer() for ( index = 1 ; index <= MAXIMUM_DISTRIBUTION ; index++ ) Distribution[ index ] = 0; - for ( index = 1 ; index <= OPERATION_COUNT ; index++ ) { + for ( index = 1 ; index <= OPERATION_COUNT ; ) { benchmark_timer_initialize(); end_time = benchmark_timer_read(); if ( end_time > MAXIMUM_DISTRIBUTION ) { @@ -156,10 +156,10 @@ void check_read_timer() * consider valid for our testing purposes. */ printf( "TOO LONG (%d) at index %d!!!\n", end_time, index ); - rtems_test_exit( 1 ); + continue; } - else - Distribution[ end_time ]++; + Distribution[ end_time ]++; + index++; } printf( "Units may not be in microseconds for this test!!!\n" ); |