Author: raja
Date: 2007-10-19 15:25:58 -0400 (Fri, 19 Oct 2007)
New Revision: 87843

Modified:
   trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
   trunk/mcs/class/corlib/Test/System.Threading/TimerTest.cs
Log:
* TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.


Modified: trunk/mcs/class/corlib/Test/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2007-10-19 
19:02:14 UTC (rev 87842)
+++ trunk/mcs/class/corlib/Test/System.Threading/ChangeLog      2007-10-19 
19:25:58 UTC (rev 87843)
@@ -1,3 +1,7 @@
+2007-10-20  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.
+
 2007-10-19  Dick Porter  <[EMAIL PROTECTED]>
 
        * ThreadTest.cs: Re-enable ManagedThreadId test too

Modified: trunk/mcs/class/corlib/Test/System.Threading/TimerTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Threading/TimerTest.cs   2007-10-19 
19:02:14 UTC (rev 87842)
+++ trunk/mcs/class/corlib/Test/System.Threading/TimerTest.cs   2007-10-19 
19:25:58 UTC (rev 87843)
@@ -106,12 +106,9 @@
                
                [Test]
                public void TestHeavyCreationLoad() {
-                       int i = 0;
                        Bucket b = new Bucket();
-                       while (i < 500) {
+                       for (int i = 0; i < 500; ++i)
                                new Timer(new 
TimerCallback(Callback),b,10,Timeout.Infinite);
-                               i++;
-                       }
                        // 1000 * 10 msec = 10,000 msec or 10 sec - if 
everything goes well
                        // we add some slack to cope with timing issues caused 
by system load etc.
                        for (int i = 0; i < 20; ++i) {

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

Reply via email to