[cig-commits] commit: Increased the limit on the time-monitor as this seems to be failing on slower machines.

Mercurial hg at geodynamics.org
Tue Mar 23 10:35:05 PDT 2010


changeset:   781:8431712d6632
branch:      1.4.x
user:        JericoRevote
date:        Thu Feb 18 16:17:11 2010 +1100
files:       Base/Foundation/tests/TimeMonitorSuite.c
description:
Increased the limit on the time-monitor as this seems to be failing on slower machines.


diff -r c87feb1d8f85 -r 8431712d6632 Base/Foundation/tests/TimeMonitorSuite.c
--- a/Base/Foundation/tests/TimeMonitorSuite.c	Thu Feb 18 15:47:16 2010 +1100
+++ b/Base/Foundation/tests/TimeMonitorSuite.c	Thu Feb 18 16:17:11 2010 +1100
@@ -61,7 +61,8 @@ void TimeMonitorSuite_TestTimingPeriod( 
    sleep( 2 );
    Stg_TimeMonitor_End( tm, &tmData );
 
-   pcu_check_true( ( 2.95 < tmData.totalSinceInit ) && ( tmData.totalSinceInit < 3.05 ) );
+	printf( "Total Since Init: %f\n", tmData.totalSinceInit );
+   pcu_check_true( ( (double)2.95 < tmData.totalSinceInit ) && ( tmData.totalSinceInit < (double)5.05 ) );
    pcu_check_true( ( 1.95 < tmData.dt ) && ( tmData.dt < 2.05 ) );
    pcu_check_true( ( 1.95 < tmData.aveProcDt ) && ( tmData.aveProcDt < 2.05 ) );
    percentOfTotalCalc = tmData.aveProcDt / tmData.totalSinceInit * 100;



More information about the CIG-COMMITS mailing list