Author: raja
Date: 2005-03-17 05:03:13 -0500 (Thu, 17 Mar 2005)
New Revision: 41931

Modified:
   trunk/mcs/errors/ChangeLog
   trunk/mcs/errors/Makefile
   trunk/mcs/errors/TestRunner.cs
Log:
* Makefile (run-mcs-tests): Disable TestRunner on net_2_0 profile.
* TestRunner.cs (Main): Exit with non-zero on regressions.

I had BINFMT_MISC that supported executing mono binaries. 
No wonder it worked for me.


Modified: trunk/mcs/errors/ChangeLog
===================================================================
--- trunk/mcs/errors/ChangeLog  2005-03-17 09:51:17 UTC (rev 41930)
+++ trunk/mcs/errors/ChangeLog  2005-03-17 10:03:13 UTC (rev 41931)
@@ -2,11 +2,13 @@
 
        * Makefile (test-local): Depend on TestRunner-$(PROFILE).cs.
        (run-mcs-tests): Clean up.  Use profile specific test runner.
+       Disable TestRunner on net_2_0 profile.
        * TestRunner.cs (ProcessTester): Redirect stdout too.
        (Tester.Log, Tester.LogLine): New.  Replacements for Console.Write
        and Console.WriteLine that also log to files.
        (Tester.Main): Add new command line argument for log file name.
        Use the name of the compiler to select tests rather than "1".
+       Exit with non-zero on regressions.
 
 2005-03-16 Marek Safar <[EMAIL PROTECTED]>
 

Modified: trunk/mcs/errors/Makefile
===================================================================
--- trunk/mcs/errors/Makefile   2005-03-17 09:51:17 UTC (rev 41930)
+++ trunk/mcs/errors/Makefile   2005-03-17 10:03:13 UTC (rev 41931)
@@ -54,16 +54,16 @@
 TEST_PATTERN = 'cs*.cs'
 endif
 
-# ifeq (net_2_0, $(PROFILE))
-# run-mcs-tests:
-#      -rm -f gmcs.log
-#      @./do-tests.pl gmcs '$(CSCOMPILE)' "cs*.cs"
-#      -rm -f generics.log
-#      @./do-tests.pl generics '$(GENERICS_COMPILE)' "gcs*.cs"
-# else
+ifeq (net_2_0, $(PROFILE))
+run-mcs-tests:
+       -rm -f gmcs.log
+       @./do-tests.pl gmcs '$(CSCOMPILE)' "cs*.cs"
+       -rm -f generics.log
+       @./do-tests.pl generics '$(GENERICS_COMPILE)' "gcs*.cs"
+else
 run-mcs-tests: TestRunner-$(PROFILE).exe
        $(with_mono_path) $(RUNTIME) TestRunner-$(PROFILE).exe $(COMPILER_NAME) 
$(COMPILER) known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
-#endif
+endif
 
 clean-local:
        rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk

Modified: trunk/mcs/errors/TestRunner.cs
===================================================================
--- trunk/mcs/errors/TestRunner.cs      2005-03-17 09:51:17 UTC (rev 41930)
+++ trunk/mcs/errors/TestRunner.cs      2005-03-17 10:03:13 UTC (rev 41931)
@@ -230,7 +230,7 @@
 
                        log_file.Close ();
 
-                       return 0;
+                       return regression.Count == 0 ? 0 : 1;
                }
 
                static void ReadWrongErrors (string file)

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

Reply via email to