Author: gonzalo
Date: 2006-08-28 15:35:16 -0400 (Mon, 28 Aug 2006)
New Revision: 64491

Modified:
   trunk/mono/eglib/test/timer.c
Log:
use fabs for comparing. It failed with -O2

Modified: trunk/mono/eglib/test/timer.c
===================================================================
--- trunk/mono/eglib/test/timer.c       2006-08-28 19:32:41 UTC (rev 64490)
+++ trunk/mono/eglib/test/timer.c       2006-08-28 19:35:16 UTC (rev 64491)
@@ -22,7 +22,7 @@
        g_timer_stop (timer);
        elapsed1 = g_timer_elapsed (timer, NULL);
        elapsed2 = g_timer_elapsed (timer, &usec);
-       if (elapsed1 != elapsed2)
+       if (fabs (elapsed1 - elapsed2) > 0.000001)
                return FAILED ("The elapsed times are not equal %f - %f.", 
elapsed1, elapsed2);
 
        elapsed2 *= 1000000;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to