Author: gert
Date: 2008-01-12 09:42:25 -0500 (Sat, 12 Jan 2008)
New Revision: 92741

Added:
   trunk/gert/standalone/bug347188/
   trunk/gert/standalone/bug347188/Lang.cs
   trunk/gert/standalone/bug347188/default.build
   trunk/gert/standalone/bug347188/test.cs
   trunk/gert/standalone/bug347188/test.snk
Log:
Added test for bug #347188.


Added: trunk/gert/standalone/bug347188/Lang.cs
===================================================================
--- trunk/gert/standalone/bug347188/Lang.cs     2008-01-12 14:41:55 UTC (rev 
92740)
+++ trunk/gert/standalone/bug347188/Lang.cs     2008-01-12 14:42:25 UTC (rev 
92741)
@@ -0,0 +1,15 @@
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyVersion ("1.0.0.0")]
+[assembly: AssemblyCulture ("en")]
+
+#if ONLY_1_1 && !MONO
+[assembly: AssemblyKeyFile ("test.snk")]
+#endif
+
+public class Lang
+{
+}


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

Added: trunk/gert/standalone/bug347188/default.build
===================================================================
--- trunk/gert/standalone/bug347188/default.build       2008-01-12 14:41:55 UTC 
(rev 92740)
+++ trunk/gert/standalone/bug347188/default.build       2008-01-12 14:42:25 UTC 
(rev 92741)
@@ -0,0 +1,37 @@
+<project name="bug347188" default="rebuild">
+       <include buildfile="../../build/common.build" />
+       
+       <property name="frameworks" 
value="mono-1.0,mono-2.0,mono-3.5,net-1.0,net-2.0,net-3.5" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="Lang.dll" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="run-test" depends="init">
+               <csc target="library" define="${csc.defines}" 
keyfile="test.snk" output="Lang.dll" warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="Lang.cs" />
+                       </sources>
+               </csc>
+               <record name="out" action="Start" />
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4" failonerror="false">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+                       <references>
+                               <include name="Lang.dll" />
+                       </references>
+               </csc>
+               <record name="out" action="Close" />
+               <fail if="${file::exists('test.exe')}">#1</fail>
+               <loadfile file="out" property="out" />
+               <fail if="${string::index-of(out,'CS1607') == -1}">#2</fail>
+               <fail if="${string::index-of(out,'''Lang''') == -1}">#3</fail>
+       </target>
+</project>


Property changes on: trunk/gert/standalone/bug347188/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug347188/test.cs
===================================================================
--- trunk/gert/standalone/bug347188/test.cs     2008-01-12 14:41:55 UTC (rev 
92740)
+++ trunk/gert/standalone/bug347188/test.cs     2008-01-12 14:42:25 UTC (rev 
92741)
@@ -0,0 +1,9 @@
+using System;
+
+class Program
+{
+       static void Main ()
+       {
+               Console.WriteLine (typeof (Lang).FullName);
+       }
+}


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

Added: trunk/gert/standalone/bug347188/test.snk
===================================================================
(Binary files differ)


Property changes on: trunk/gert/standalone/bug347188/test.snk
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

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

Reply via email to