Author: gert
Date: 2007-07-10 14:36:48 -0400 (Tue, 10 Jul 2007)
New Revision: 81732

Added:
   trunk/gert/standalone/bug77886/
   trunk/gert/standalone/bug77886/default.build
   trunk/gert/standalone/bug77886/test.cs
   trunk/gert/standalone/bug82049/
   trunk/gert/standalone/bug82049/IMyInterface.cs
   trunk/gert/standalone/bug82049/IMyInterfaceFirst.cs
   trunk/gert/standalone/bug82049/default.build
   trunk/gert/standalone/bug82049/test.cs
   trunk/gert/standalone/bug82050/
   trunk/gert/standalone/bug82050/IMyInterface.cs
   trunk/gert/standalone/bug82050/IMyInterfaceFirst.cs
   trunk/gert/standalone/bug82050/default.build
   trunk/gert/standalone/bug82050/test.cs
   trunk/gert/standalone/bug82053/
   trunk/gert/standalone/bug82053/default.build
   trunk/gert/standalone/bug82053/test.cs
   trunk/gert/standalone/bug82056/
   trunk/gert/standalone/bug82056/default.build
   trunk/gert/standalone/bug82056/test.il
Modified:
   trunk/gert/standalone/known-issues
Log:
Added few tests.


Added: trunk/gert/standalone/bug77886/default.build
===================================================================
--- trunk/gert/standalone/bug77886/default.build        2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug77886/default.build        2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,52 @@
+<project name="bug77886" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.dll" />
+                               <include name="test.dll.dll" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="library" define="${csc.defines}" output="test.dll" 
warnaserror="true" warninglevel="4">
+                       <nowarn>
+                               <warning number="0649" />
+                       </nowarn>
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec 
program="${framework::get-runtime-engine(framework::get-target-framework())}">
+                       <arg value="--aot" />
+                       <arg file="test.dll" />
+               </exec>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug77886/test.cs
===================================================================
--- trunk/gert/standalone/bug77886/test.cs      2007-07-10 18:14:26 UTC (rev 
81731)
+++ trunk/gert/standalone/bug77886/test.cs      2007-07-10 18:36:48 UTC (rev 
81732)
@@ -0,0 +1,10 @@
+class SimpleIterator<T> : System.Collections.IEnumerator
+{
+       T x;
+       public void Reset () { }
+       public bool MoveNext () { return false; }
+       public object Current
+       {
+               get { return x; }
+       }
+}


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

Added: trunk/gert/standalone/bug82049/IMyInterface.cs
===================================================================
--- trunk/gert/standalone/bug82049/IMyInterface.cs      2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82049/IMyInterface.cs      2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,8 @@
+namespace Application
+{
+       public interface IMyInterface
+       {
+               void Run ();
+               void Stop ();
+       }
+}


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

Added: trunk/gert/standalone/bug82049/IMyInterfaceFirst.cs
===================================================================
--- trunk/gert/standalone/bug82049/IMyInterfaceFirst.cs 2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82049/IMyInterfaceFirst.cs 2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,7 @@
+namespace Application
+{
+       public interface IMyInterface
+       {
+               void Run ();
+       }
+}


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

Added: trunk/gert/standalone/bug82049/default.build
===================================================================
--- trunk/gert/standalone/bug82049/default.build        2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82049/default.build        2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,73 @@
+<project name="bug82049" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="IMyInterface.dll" />
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="library" define="${csc.defines}" 
output="IMyInterface.dll" warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="IMyInterfaceFirst.cs" />
+                       </sources>
+               </csc>
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+                       <references>
+                               <include name="IMyInterface.dll" />
+                       </references>
+               </csc>
+               <delete file="IMyInterface.dll" />
+               <csc target="library" define="${csc.defines}" 
output="IMyInterface.dll" warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="IMyInterface.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug82049/test.cs
===================================================================
--- trunk/gert/standalone/bug82049/test.cs      2007-07-10 18:14:26 UTC (rev 
81731)
+++ trunk/gert/standalone/bug82049/test.cs      2007-07-10 18:36:48 UTC (rev 
81732)
@@ -0,0 +1,30 @@
+using System;
+
+namespace Application
+{
+       public class App
+       {
+               static void Test ()
+               {
+                       MyClass c = new MyClass ();
+                       c.Run ();
+               }
+
+               public static void Main ()
+               {
+                       try {
+                               Test ();
+                       } catch (TypeLoadException ex) {
+                               Console.WriteLine (ex.ToString ());
+                               Console.WriteLine ("Got an exception: " + 
ex.Message);
+                       }
+               }
+       }
+       
+       class MyClass: IMyInterface
+       {
+               public void Run ()
+               {
+               }
+       }
+}


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

Added: trunk/gert/standalone/bug82050/IMyInterface.cs
===================================================================
--- trunk/gert/standalone/bug82050/IMyInterface.cs      2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82050/IMyInterface.cs      2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,8 @@
+namespace Application
+{
+       public interface IMyInterface
+       {
+               void Run ();
+               void Stop ();
+       }
+}


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

Added: trunk/gert/standalone/bug82050/IMyInterfaceFirst.cs
===================================================================
--- trunk/gert/standalone/bug82050/IMyInterfaceFirst.cs 2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82050/IMyInterfaceFirst.cs 2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,7 @@
+namespace Application
+{
+       public interface IMyInterface
+       {
+               void Run ();
+       }
+}


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

Added: trunk/gert/standalone/bug82050/default.build
===================================================================
--- trunk/gert/standalone/bug82050/default.build        2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82050/default.build        2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,73 @@
+<project name="bug82050" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="IMyInterface.dll" />
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="library" define="${csc.defines}" 
output="IMyInterface.dll" warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="IMyInterfaceFirst.cs" />
+                       </sources>
+               </csc>
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+                       <references>
+                               <include name="IMyInterface.dll" />
+                       </references>
+               </csc>
+               <delete file="IMyInterface.dll" />
+               <csc target="library" define="${csc.defines}" 
output="IMyInterface.dll" warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="IMyInterface.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug82050/test.cs
===================================================================
--- trunk/gert/standalone/bug82050/test.cs      2007-07-10 18:14:26 UTC (rev 
81731)
+++ trunk/gert/standalone/bug82050/test.cs      2007-07-10 18:36:48 UTC (rev 
81732)
@@ -0,0 +1,37 @@
+using System;
+
+namespace Application
+{
+       public class App
+       {
+               public static void Test ()
+               {
+                       MyClass c = new MyClass ();
+                       c.Run ();
+               }
+
+               public static void Test2 ()
+               {
+               }
+
+               static int Main ()
+               {
+                       for (int i = 0; i < 1000000; ++i) {
+                               try {
+                                       Test ();
+                                       return 1;
+                               } catch (TypeLoadException) {
+                               }
+                       }
+                       Test2 ();
+                       return 0;
+               }
+       }
+       
+       class MyClass: IMyInterface
+       {
+               public void Run ()
+               {
+               }
+       }
+}


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

Added: trunk/gert/standalone/bug82053/default.build
===================================================================
--- trunk/gert/standalone/bug82053/default.build        2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82053/default.build        2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,58 @@
+<project name="bug82053" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug82053/test.cs
===================================================================
--- trunk/gert/standalone/bug82053/test.cs      2007-07-10 18:14:26 UTC (rev 
81731)
+++ trunk/gert/standalone/bug82053/test.cs      2007-07-10 18:36:48 UTC (rev 
81732)
@@ -0,0 +1,17 @@
+using System;
+using System.Runtime.Remoting;
+
+class Program
+{
+       static void Main ()
+       {
+               RemotingConfiguration.RegisterWellKnownServiceType (typeof 
(Foo),
+                       "http://localhost:8000";, WellKnownObjectMode.Singleton);
+               RemotingConfiguration.RegisterWellKnownServiceType (typeof 
(Foo),
+                       "http://localhost:8000";, WellKnownObjectMode.Singleton);
+       }
+
+       class Foo : MarshalByRefObject
+       {
+       }
+}


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

Added: trunk/gert/standalone/bug82056/default.build
===================================================================
--- trunk/gert/standalone/bug82056/default.build        2007-07-10 18:14:26 UTC 
(rev 81731)
+++ trunk/gert/standalone/bug82056/default.build        2007-07-10 18:36:48 UTC 
(rev 81732)
@@ -0,0 +1,58 @@
+<project name="bug82056" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <ilasm target="exe" output="test.exe">
+                       <sources>
+                               <include name="test.il" />
+                       </sources>
+               </ilasm>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug82056/test.il
===================================================================
--- trunk/gert/standalone/bug82056/test.il      2007-07-10 18:14:26 UTC (rev 
81731)
+++ trunk/gert/standalone/bug82056/test.il      2007-07-10 18:36:48 UTC (rev 
81732)
@@ -0,0 +1,92 @@
+.assembly extern mscorlib
+{
+       .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+       .ver 1:0:5000:0
+}
+.assembly test
+{
+       .hash algorithm 0x00008004
+       .ver 0:0:0:0
+}
+.module test.exe
+.imagebase 0x00400000
+.subsystem 0x00000003
+.file alignment 512
+.corflags 0x00000001
+
+.class private auto ansi beforefieldinit Program extends 
[mscorlib]System.Object
+{
+}
+
+.class public auto ansi sealed TestEnum extends [mscorlib]System.Enum
+{
+}
+
+.class public auto ansi beforefieldinit Class1 extends [mscorlib]System.Object
+{
+}
+
+.class private auto ansi beforefieldinit Program extends 
[mscorlib]System.Object
+{
+       .method private hidebysig static void Main(string[] args) cil managed
+       {
+               .entrypoint
+               .maxstack 1
+               IL_0000:  call valuetype TestEnum Class1::Foo()
+               IL_0005:  pop
+               IL_0006:  ret
+       }
+
+       .method public hidebysig specialname rtspecialname instance void 
.ctor() cil managed
+       {
+               .maxstack 1
+               IL_0000:  ldarg.0
+               IL_0001:  call instance void [mscorlib]System.Object::.ctor()
+               IL_0006:  ret
+       }
+}
+
+.class public auto ansi sealed TestEnum extends [mscorlib]System.Enum
+{
+       .field public specialname rtspecialname int8 value__
+       .field public static literal valuetype TestEnum None = int8(0x00)
+}
+
+.class public auto ansi beforefieldinit Class1 extends [mscorlib]System.Object
+{
+       .field public static bool var
+       .method public hidebysig static valuetype TestEnum Foo() cil managed
+       {
+               .maxstack 1
+               .locals init (valuetype TestEnum V_0)
+               IL_0000:  ldsfld     bool Class1::var
+               IL_0005:  brfalse.s  IL_000b
+
+               IL_0007:  ldc.i4.0
+               IL_0008:  stloc.0
+               IL_0009:  br.s       IL_000f
+
+               IL_000b:  ldc.i4.0
+               IL_000c:  stloc.0
+               IL_000d:  br.s       IL_000f
+
+               IL_000f:  ldloc.0
+               IL_0010:  ret
+       }
+
+       .method private hidebysig specialname rtspecialname static void 
.cctor() cil managed
+       {
+               .maxstack 1
+               IL_0000:  ldc.i4.1
+               IL_0001:  stsfld     bool Class1::var
+               IL_0006:  ret
+       }
+
+       .method public hidebysig specialname rtspecialname instance void 
.ctor() cil managed
+       {
+               .maxstack 1
+               IL_0000:  ldarg.0
+               IL_0001:  call instance void [mscorlib]System.Object::.ctor()
+               IL_0006:  ret
+       }
+}

Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues  2007-07-10 18:14:26 UTC (rev 81731)
+++ trunk/gert/standalone/known-issues  2007-07-10 18:36:48 UTC (rev 81732)
@@ -47,3 +47,4 @@
 bug82034/**
 bug82038/**
 bug82040/**
+bug82053/**

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

Reply via email to