Author: zoltan
Date: 2007-12-07 08:34:30 -0500 (Fri, 07 Dec 2007)
New Revision: 90928

Modified:
   trunk/mono/mono/tests/ChangeLog
   trunk/mono/mono/tests/checked.cs
Log:
2007-12-07  Zoltan Varga  <[EMAIL PROTECTED]>

        * checked.cs: Make exit codes positive.


Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog     2007-12-07 13:30:20 UTC (rev 90927)
+++ trunk/mono/mono/tests/ChangeLog     2007-12-07 13:34:30 UTC (rev 90928)
@@ -1,3 +1,7 @@
+2007-12-07  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * checked.cs: Make exit codes positive.
+
 2007-12-05  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Makefile.am (EXTRA_DIST): Add a missing file.

Modified: trunk/mono/mono/tests/checked.cs
===================================================================
--- trunk/mono/mono/tests/checked.cs    2007-12-07 13:30:20 UTC (rev 90927)
+++ trunk/mono/mono/tests/checked.cs    2007-12-07 13:34:30 UTC (rev 90928)
@@ -25,7 +25,7 @@
 
 
                        if (!exception)
-                               return -1;
+                               return 1;
 
                        exception = false;
 
@@ -37,12 +37,12 @@
                                        i = (int)a;
                                }
                        } catch (Exception) {
-                               return -2;
+                               return 2;
                        }
 
 
                        if (i != 100000)
-                               return -3;
+                               return 3;
                
                        exception = false;
 
@@ -78,7 +78,7 @@
 
 
                        if (!exception)
-                               return -4;
+                               return 4;
 
                        a  = 1e5f;
                        try {
@@ -88,11 +88,11 @@
                                }
                        } 
                        catch (Exception) {
-                               return -5;
+                               return 5;
                        }
 
                        if (ui != 100000)
-                               return -6;
+                               return 6;
 
                        // Check mul.ovf
                        checked {
@@ -112,7 +112,7 @@
 
                                for (int j = 0; j < cases.Length; ++j)
                                        if (cases [j][0] * cases [j][1] != 
cases [j][2])
-                                               return -7 - j;
+                                               return 7 + j;
                        }
 
                        checked {
@@ -121,47 +121,47 @@
 
                                j = k = 0;
                                if (j * k != 0)
-                                       return -7;
+                                       return 20;
 
                                j = -5;
                                k = 0;
                                if (j * k != 0)
-                                       return -8;
+                                       return 21;
 
                                j = 0;
                                k = -5;
                                if (j * k != 0)
-                                       return -9;
+                                       return 22;
 
                                j = 3;
                                k = -5;
                                if (j * k != -15)
-                                       return -10;
+                                       return 23;
 
                                j = 3;
                                k = 5;
                                if (j * k != 15)
-                                       return -11;
+                                       return 24;
 
                                j = -3;
                                k = -5;
                                if (j * k != 15)
-                                       return -12;
+                                       return 25;
 
                                j = -3;
                                k = 5;
                                if (j * k != -15)
-                                       return -13;
+                                       return 26;
 
                                j = -1;
                                k = 32767;
                                if (j * k != -32767)
-                                       return -14;
+                                       return 27;
                                
                                j = 32767;
                                k = -1;
                                if (j * k != -32767)
-                                       return -15;
+                                       return 28;
                        }
 
                        checked {
@@ -180,7 +180,7 @@
 
                                for (int j = 0; j < cases.Length; ++j)
                                        if (cases [j][0] * cases [j][1] != 
cases [j][2])
-                                               return -15 - j;
+                                               return 29 + j;
                        }
                                
                        Console.WriteLine("test-ok");

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

Reply via email to