Author: marek
Date: 2006-10-06 16:09:55 -0400 (Fri, 06 Oct 2006)
New Revision: 66373

Modified:
   trunk/mcs/tools/compiler-tester/ChangeLog
   trunk/mcs/tools/compiler-tester/compiler-tester.cs
Log:
2006-10-06  Marek Safar  <[EMAIL PROTECTED]>

        * compiler-tester.cs: Positive test file can be now DLL.


Modified: trunk/mcs/tools/compiler-tester/ChangeLog
===================================================================
--- trunk/mcs/tools/compiler-tester/ChangeLog   2006-10-06 19:03:26 UTC (rev 
66372)
+++ trunk/mcs/tools/compiler-tester/ChangeLog   2006-10-06 20:09:55 UTC (rev 
66373)
@@ -1,3 +1,7 @@
+2006-10-06  Marek Safar  <[EMAIL PROTECTED]>
+
+       * compiler-tester.cs: Positive test file can be now DLL.
+
 2006-09-27  Marek Safar  <[EMAIL PROTECTED]>
 
        * compiler-tester.cs: Add a new "//GMCS:" comment for messages

Modified: trunk/mcs/tools/compiler-tester/compiler-tester.cs
===================================================================
--- trunk/mcs/tools/compiler-tester/compiler-tester.cs  2006-10-06 19:03:26 UTC 
(rev 66372)
+++ trunk/mcs/tools/compiler-tester/compiler-tester.cs  2006-10-06 20:09:55 UTC 
(rev 66373)
@@ -409,6 +409,13 @@
 
                        MethodInfo mi = null;
                        string file = Path.Combine (files_folder, 
Path.GetFileNameWithoutExtension (filename) + ".exe");
+
+                       // Enable .dll only tests (no execution required)
+                       if (!File.Exists(file)) {
+                               HandleFailure (filename, TestResult.Success, 
null);
+                               return true;
+                       }
+
                        if (!appdomain_limit_reached) {
                                try {
                                        mi = Assembly.LoadFile 
(file).EntryPoint;

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

Reply via email to