CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Changes by:     Klaus Treichel <ktreichel>      08/09/30 18:34:30

Modified files:
        .              : ChangeLog 
        tests/System/Diagnostics: TestStopwatch.cs 

Log message:
        Check only if the Frequency is != 0 instead for >= 10000000 because 
that cannot
        be guaranteed on all systems.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2540&r2=1.2541
http://cvs.savannah.gnu.org/viewcvs/pnetlib/tests/System/Diagnostics/TestStopwatch.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2540
retrieving revision 1.2541
diff -u -b -r1.2540 -r1.2541
--- ChangeLog   29 Sep 2008 13:03:12 -0000      1.2540
+++ ChangeLog   30 Sep 2008 18:34:30 -0000      1.2541
@@ -1,3 +1,8 @@
+2008-09-30  Klaus Treichel  <[EMAIL PROTECTED]>
+
+       * tests/System/Diagnostics/TestStopwatch.cs (TestStopwatchCCtor): Check
+       if Frequency is != 0 if high resolution is available.
+
 2008-09-29  Klaus Treichel  <[EMAIL PROTECTED]>
 
        * System/Diagnostics/Stopwatch.cs: Add Stopwatch class.

Index: tests/System/Diagnostics/TestStopwatch.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/tests/System/Diagnostics/TestStopwatch.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tests/System/Diagnostics/TestStopwatch.cs   29 Sep 2008 13:03:13 -0000      
1.1
+++ tests/System/Diagnostics/TestStopwatch.cs   30 Sep 2008 18:34:30 -0000      
1.2
@@ -53,7 +53,7 @@
 
                                if(isHighResolution)
                                {
-                                       Assert("Frequency >= 10000000", 
Stopwatch.Frequency >= 10000000);
+                                       Assert("Frequency != 0", 
Stopwatch.Frequency != 0);
                                }
                                else
                                {


_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits

Reply via email to