Author: zoltan
Date: 2006-06-10 09:25:10 -0400 (Sat, 10 Jun 2006)
New Revision: 61613

Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/interlocked-2.2.cs
Log:
2006-06-10  Zoltan Varga  <[EMAIL PROTECTED]>

        * interlocked-2.2.cs: Make the return values positive.


Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2006-06-10 06:44:22 UTC (rev 61612)
+++ trunk/mono/mono/tests/ChangeLog     2006-06-10 13:25:10 UTC (rev 61613)
@@ -1,3 +1,7 @@
+2006-06-10  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * interlocked-2.2.cs: Make the return values positive.
+
 2006-06-07  Wade Berrier <[EMAIL PROTECTED]>
 
        * Makefile.am: add  test-inline-call-stack-library.cs and 
test-inline-call-stack.cs

Modified: trunk/mono/mono/tests/interlocked-2.2.cs
===================================================================
--- trunk/mono/mono/tests/interlocked-2.2.cs    2006-06-10 06:44:22 UTC (rev 
61612)
+++ trunk/mono/mono/tests/interlocked-2.2.cs    2006-06-10 13:25:10 UTC (rev 
61613)
@@ -6,8 +6,6 @@
        public int test;
        public int ltest;
 
-       static int s_test;
-       
        public static int Main() {
                int a,b;
                long la, lb;
@@ -18,33 +16,33 @@
                it.test = 2;
                int c = Interlocked.Add (ref it.test, 1);
                if (c != 3)
-                       return -1;
+                       return 1;
 
                if (it.test != 3)
-                       return -2;
+                       return 2;
 
                a = 1;
                b = Interlocked.Add (ref a, 1);
                if (a != 2)
-                       return -3;
+                       return 3;
                if (b != 2)
-                       return -4;
+                       return 4;
 
                /* long */
                it.ltest = 2;
                int lc = Interlocked.Add (ref it.ltest, 1);
                if (lc != 3)
-                       return -5;
+                       return 5;
 
                if (it.ltest != 3)
-                       return -6;
+                       return 6;
 
                la = 1;
                lb = Interlocked.Add (ref la, 1);
                if (la != 2)
-                       return -7;
+                       return 7;
                if (lb != 2)
-                       return -8;
+                       return 8;
 
                Console.WriteLine ("done!");
 

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

Reply via email to