From dcb1407d43e1a3dcd25153d182adc26b79187eb6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Oct 2009 21:34:15 +0000 Subject: 2009-10-14 Joel Sherrill * tmck/task1.c: Ignore numbers that are too large but keep going -- do not abort. --- testsuites/tmtests/ChangeLog | 5 +++++ 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 + + * tmck/task1.c: Ignore numbers that are too large but keep going -- do + not abort. + 2009-10-14 Ralf Corsépius * 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" ); -- cgit v1.2.3