Author: gert
Date: 2007-11-08 15:22:12 -0500 (Thu, 08 Nov 2007)
New Revision: 89248

Added:
   trunk/gert/standalone/bug82746/test3.cs
Modified:
   trunk/gert/standalone/bug82746/default.build
   trunk/gert/standalone/bug82746/test1.cs
Log:
Improve tests due to bug #339787.


Modified: trunk/gert/standalone/bug82746/default.build
===================================================================
--- trunk/gert/standalone/bug82746/default.build        2007-11-08 20:16:32 UTC 
(rev 89247)
+++ trunk/gert/standalone/bug82746/default.build        2007-11-08 20:22:12 UTC 
(rev 89248)
@@ -23,6 +23,7 @@
                                <include name="out" />
                                <include name="test1.exe" />
                                <include name="test2.exe" />
+                               <include name="test3.exe" />
                        </fileset>
                </delete>
        </target>
@@ -59,6 +60,14 @@
                                <include name="System.Windows.Forms.dll" />
                        </references>
                </csc>
+               <csc target="exe" define="${csc.defines}" output="test3.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test3.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
        </target>
 
        <target name="run" depends="compile">
@@ -66,6 +75,8 @@
                <fail if="${file::exists('out')}">#1</fail>
                <exec program="test2.exe" managed="true" output="out" />
                <fail if="${file::exists('out')}">#2</fail>
+               <exec program="test3.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}">#3</fail>
        </target>
 
        <target name="rebuild" depends="clean, build" />

Modified: trunk/gert/standalone/bug82746/test1.cs
===================================================================
--- trunk/gert/standalone/bug82746/test1.cs     2007-11-08 20:16:32 UTC (rev 
89247)
+++ trunk/gert/standalone/bug82746/test1.cs     2007-11-08 20:22:12 UTC (rev 
89248)
@@ -1,6 +1,7 @@
 using System.Reflection;
 using System.Windows.Forms;
 
+[assembly: AssemblyFileVersion ("4.3.2.1")]
 [assembly: AssemblyInformationalVersion ("1.2.3.4")]
 [assembly: AssemblyVersion ("5.6.7.8")]
 

Added: trunk/gert/standalone/bug82746/test3.cs
===================================================================
--- trunk/gert/standalone/bug82746/test3.cs     2007-11-08 20:16:32 UTC (rev 
89247)
+++ trunk/gert/standalone/bug82746/test3.cs     2007-11-08 20:22:12 UTC (rev 
89248)
@@ -0,0 +1,15 @@
+using System.Reflection;
+using System.Windows.Forms;
+
+[assembly: AssemblyFileVersion ("4.3.2.1")]
+[assembly: AssemblyVersion ("5.6.7.8")]
+
+class Program
+{
+       static int Main ()
+       {
+               if (Application.ProductVersion != "4.3.2.1")
+                       return 1;
+               return 0;
+       }
+}


Property changes on: trunk/gert/standalone/bug82746/test3.cs
___________________________________________________________________
Name: svn:eol-style
   + native

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

Reply via email to