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 /testsuites/tmtests/tmck/task1.c | |
parent | 881db0eb00dd97545500f35227bc3b94e58456b5 (diff) |
2009-10-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* tmck/task1.c: Ignore numbers that are too large but keep going -- do
not abort.
Diffstat (limited to 'testsuites/tmtests/tmck/task1.c')
-rw-r--r-- | testsuites/tmtests/tmck/task1.c | 8 |
1 files changed, 4 insertions, 4 deletions
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" ); |