Procházet zdrojové kódy

* TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.

svn path=/trunk/mcs/; revision=87843
Raja R Harinath před 18 roky
rodič
revize
b951f53c4b

+ 4 - 0
mcs/class/corlib/Test/System.Threading/ChangeLog

@@ -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

+ 1 - 4
mcs/class/corlib/Test/System.Threading/TimerTest.cs

@@ -106,12 +106,9 @@ namespace MonoTests.System.Threading {
 		
 		[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) {