Author: gert
Date: 2007-05-05 06:01:01 -0400 (Sat, 05 May 2007)
New Revision: 76734

Added:
   trunk/gert/standalone/bug71604/
   trunk/gert/standalone/bug71604/default.build
   trunk/gert/standalone/bug71604/test.cs
   trunk/gert/standalone/bug74528/
   trunk/gert/standalone/bug74528/default.build
   trunk/gert/standalone/bug74528/test.cs
   trunk/gert/standalone/bug74633/
   trunk/gert/standalone/bug74633/default.build
   trunk/gert/standalone/bug74633/test.cs
   trunk/gert/standalone/bug74841/
   trunk/gert/standalone/bug74841/default.build
   trunk/gert/standalone/bug74841/test.cs
   trunk/gert/standalone/bug74936/
   trunk/gert/standalone/bug74936/default.build
   trunk/gert/standalone/bug74936/test.cs
   trunk/gert/standalone/bug74952/
   trunk/gert/standalone/bug74952/default.build
   trunk/gert/standalone/bug74952/test.cs
   trunk/gert/standalone/bug75144/
   trunk/gert/standalone/bug75144/default.build
   trunk/gert/standalone/bug75144/test.cs
   trunk/gert/standalone/bug75284/
   trunk/gert/standalone/bug75284/default.build
   trunk/gert/standalone/bug75284/log4net.dll
   trunk/gert/standalone/bug75284/test.cs
   trunk/gert/standalone/bug75317/
   trunk/gert/standalone/bug75317/default.build
   trunk/gert/standalone/bug75317/test.cs
   trunk/gert/standalone/bug75526/
   trunk/gert/standalone/bug75526/default.build
   trunk/gert/standalone/bug75526/test1.cs
   trunk/gert/standalone/bug75526/test2.cs
   trunk/gert/standalone/bug75705/
   trunk/gert/standalone/bug75705/default.build
   trunk/gert/standalone/bug75705/test.cs
   trunk/gert/standalone/bug75825/
   trunk/gert/standalone/bug75825/default.build
   trunk/gert/standalone/bug75825/test.cs
   trunk/gert/standalone/bug75903/
   trunk/gert/standalone/bug75903/default.build
   trunk/gert/standalone/bug75903/test.cs
Log:
Second small batch of tests.


Added: trunk/gert/standalone/bug71604/default.build
===================================================================
--- trunk/gert/standalone/bug71604/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug71604/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,57 @@
+<project name="bug71604" 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="test.dll" />
+                               <include name="test.xml" />
+                       </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="compile" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="library" output="test.dll" doc="test.xml" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+               <xmlpeek file="test.xml" property="cref" 
xpath="/doc/members/[EMAIL PROTECTED]'T:ITest']/summary/see[1]/@cref" />
+               <fail unless="${cref == 'E:ITest.Start'}">Expected 
'E:ITest.Start' but was '${cref}'.</fail>
+               <xmlpeek file="test.xml" property="cref" 
xpath="/doc/members/[EMAIL PROTECTED]'T:ITest']/summary/see[2]/@cref" />
+               <fail unless="${cref == 'P:ITest.Foo'}">Expected 'P:ITest.Foo' 
but was '${cref}'.</fail>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug71604/test.cs
===================================================================
--- trunk/gert/standalone/bug71604/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug71604/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,16 @@
+using System;
+
+/// <summary>
+/// <see cref="ITest.Start" />
+/// <see cref="ITest.Foo" />
+/// </summary>
+public interface ITest
+{
+       /// <summary>whatever</summary>
+       event EventHandler Start;
+
+       /// <summary>hogehoge</summary>
+       int Foo {
+               get;
+       }
+}


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

Added: trunk/gert/standalone/bug74528/default.build
===================================================================
--- trunk/gert/standalone/bug74528/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug74528/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,52 @@
+<project name="bug74528" 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="test.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="compile" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="library" output="test.dll" define="${csc.defines}" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug74528/test.cs
===================================================================
--- trunk/gert/standalone/bug74528/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug74528/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,15 @@
+public class Location {
+       public static readonly Location UnknownLocation = new Location();
+
+       private Location() {
+       }
+}
+
+public abstract class Element {
+       private Location _location = Location.UnknownLocation;
+
+       protected virtual Location Location {
+               get { return _location; }
+               set { _location = value; }
+       }
+}      


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

Added: trunk/gert/standalone/bug74633/default.build
===================================================================
--- trunk/gert/standalone/bug74633/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug74633/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,53 @@
+<project name="bug74633" 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="test.exe" />
+                               <include name="test.xml" />
+                       </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="compile" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" output="test.exe" doc="test.xml" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug74633/test.cs
===================================================================
--- trunk/gert/standalone/bug74633/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug74633/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,11 @@
+using System;
+
+/// <summary>
+/// <see cref="AppDomain.AssemblyResolve" />
+/// </summary>
+public class Whatever {
+       /// <summary></summary>
+       public static void Main() {
+       }
+}
+


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

Added: trunk/gert/standalone/bug74841/default.build
===================================================================
--- trunk/gert/standalone/bug74841/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug74841/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,50 @@
+<project name="bug74841" 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>
+
+       <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-2.0,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" output="test.exe" define="${csc.defines}" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile" if="${platform::is-unix()}">
+               <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/bug74841/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug74841/test.cs
===================================================================
--- trunk/gert/standalone/bug74841/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug74841/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,12 @@
+using System;
+
+class Program {
+       static int Main()
+       {
+               if (Environment.OSVersion.Platform == PlatformID.Unix) {
+                       return 0;
+               } else {
+                       return 1;
+               }
+       }
+}


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

Added: trunk/gert/standalone/bug74936/default.build
===================================================================
--- trunk/gert/standalone/bug74936/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug74936/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,58 @@
+<project name="bug74936" 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" output="test.exe" define="${csc.defines}" 
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/bug74936/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug74936/test.cs
===================================================================
--- trunk/gert/standalone/bug74936/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug74936/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,24 @@
+using System;
+
+public class EntryPoint {
+       public static int Main() {
+               string msg = "Should've resulted in FormatException";           
+
+               try {
+                       DateTime.Parse("1");
+                       Console.WriteLine("#1: " + msg);
+                       return 1;
+               } catch (FormatException) {
+               }
+
+               try {
+                       DateTime.Parse("8.5");
+                       Console.WriteLine("#2: " + msg);
+                       return 1;
+               } catch (FormatException) {
+               }
+
+               return 0;
+       }
+}
+


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

Added: trunk/gert/standalone/bug74952/default.build
===================================================================
--- trunk/gert/standalone/bug74952/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug74952/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,59 @@
+<project name="bug74952" 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/bug74952/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug74952/test.cs
===================================================================
--- trunk/gert/standalone/bug74952/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug74952/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,27 @@
+using System;
+using System.IO;
+using System.Security.Cryptography;
+using System.Threading;
+
+public class Test
+{
+       static void Main ()
+       {
+               Thread [] threads = new Thread [100];
+               for (int x = 0; x < threads.Length; x++) {
+                       threads [x] = new Thread (new ThreadStart (ThreadLoad));
+               }
+               foreach (Thread t in threads) {
+                       t.Start ();
+               }
+               foreach (Thread t in threads) {
+                       t.Join ();
+               }
+       }
+
+       public static void ThreadLoad ()
+       {
+               RSA rsa = new RSACryptoServiceProvider (384);
+               rsa.ExportParameters (false);
+       }
+}


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

Added: trunk/gert/standalone/bug75144/default.build
===================================================================
--- trunk/gert/standalone/bug75144/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75144/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,58 @@
+<project name="bug75144" 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" output="test.exe" define="${csc.defines}" 
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/bug75144/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug75144/test.cs
===================================================================
--- trunk/gert/standalone/bug75144/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75144/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,8 @@
+using System;
+
+class UriTest {
+       static void Main()
+       {
+               new Uri("file://");
+       }
+}


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

Added: trunk/gert/standalone/bug75284/default.build
===================================================================
--- trunk/gert/standalone/bug75284/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75284/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,56 @@
+<project name="bug75284" 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="compile" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" output="test.exe" define="${csc.defines}" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+                       <references>
+                               <include name="log4net.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug75284/log4net.dll
===================================================================
(Binary files differ)


Property changes on: trunk/gert/standalone/bug75284/log4net.dll
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Added: trunk/gert/standalone/bug75284/test.cs
===================================================================
--- trunk/gert/standalone/bug75284/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75284/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,13 @@
+using log4net;
+using System;
+
+[assembly: CLSCompliant(true)]
+
+public class EntryPoint
+{
+       public static void Main() {
+               ILog logger = LogManager.GetLogger("whatever");
+               logger.Debug("test");
+       }
+}
+


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

Added: trunk/gert/standalone/bug75317/default.build
===================================================================
--- trunk/gert/standalone/bug75317/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75317/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,58 @@
+<project name="bug75317" 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" output="test.exe" define="${csc.defines}" 
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/bug75317/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug75317/test.cs
===================================================================
--- trunk/gert/standalone/bug75317/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75317/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,18 @@
+using System;
+
+class Program
+{
+       static int Main ()
+       {
+               DateTime currentDate = DateTime.Now;
+
+               if (currentDate.Year > 2000) {
+                       goto check_year;
+               }
+
+               return 1;
+
+       check_year:
+               return 0;
+       }
+}


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

Added: trunk/gert/standalone/bug75526/default.build
===================================================================
--- trunk/gert/standalone/bug75526/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75526/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,67 @@
+<project name="bug75526" 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="test1.exe" />
+                               <include name="test2.exe" />
+                               <include name="tmp.txt" />
+                       </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="test1.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test1.cs" />
+                       </sources>
+               </csc>
+               <csc target="exe" define="${csc.defines}" output="test2.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test2.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test1.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}">#1</fail>
+               <exec program="test2.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}">#2</fail>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>
+


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

Added: trunk/gert/standalone/bug75526/test1.cs
===================================================================
--- trunk/gert/standalone/bug75526/test1.cs     2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75526/test1.cs     2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,25 @@
+using System;
+using System.IO;
+
+public class Test
+{
+       static int Main ()
+       {
+               string tempFile = Path.Combine 
(AppDomain.CurrentDomain.BaseDirectory,
+                       "tmp.txt");
+               using (FileStream fs = File.OpenWrite (tempFile)) {
+                       for (int i = 0; i < 50000; i++) {
+                               fs.WriteByte (5);
+                       }
+               }
+
+               using (FileStream fs = File.OpenRead (tempFile)) {
+                       StreamReader sr = new StreamReader (fs);
+                       char [] buf = new char [8192];
+                       int len = sr.Read (buf, 0, buf.Length);
+                       if (len != 8192)
+                               return 1;
+               }
+               return 0;
+       }
+}


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

Added: trunk/gert/standalone/bug75526/test2.cs
===================================================================
--- trunk/gert/standalone/bug75526/test2.cs     2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75526/test2.cs     2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,21 @@
+using System;
+using System.IO;
+
+class X : MemoryStream
+{
+       public override int Read (byte [] buffer, int offset, int count)
+       {
+               buffer [offset + 0] = (byte) 'a';
+               buffer [offset + 1] = (byte) 'b';
+               return 2;
+       }
+
+       static int Main ()
+       {
+               TextReader tr = new StreamReader (new X ());
+               int len = tr.Read (new char [10], 0, 10);
+               if (len != 2)
+                       return 1;
+               return 0;
+       }
+}


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

Added: trunk/gert/standalone/bug75705/default.build
===================================================================
--- trunk/gert/standalone/bug75705/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75705/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,58 @@
+<project name="bug75705" 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/bug75705/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug75705/test.cs
===================================================================
--- trunk/gert/standalone/bug75705/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75705/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,40 @@
+using System;
+using System.Net;
+using System.Net.Sockets;
+using System.Threading;
+
+class Program
+{
+       static bool socketThreadRunning;
+       static Socket socket;
+
+       static int Main ()
+       {
+               // Opening socket like discovery does.
+               socket = new Socket (AddressFamily.InterNetwork, 
SocketType.Dgram, ProtocolType.Udp);
+               socket.SetSocketOption (SocketOptionLevel.Socket, 
SocketOptionName.ReuseAddress, 1);
+               socket.Bind (new IPEndPoint (IPAddress.Any, 2917));
+               socket.SetSocketOption (SocketOptionLevel.IP, 
SocketOptionName.AddMembership,
+                       new MulticastOption (IPAddress.Parse ("224.4.0.1"), 
IPAddress.Any));
+
+               Thread socketThread = new Thread (new ThreadStart 
(SocketReceive));
+               socketThread.Start ();
+               socketThreadRunning = true;
+               Thread.Sleep (50); // Give the thread a moment to be in it's 
socket.Receive() call.
+               socket.Close ();
+               Thread.Sleep (50);  // Give it a moment to end.
+               if (socketThreadRunning)
+                       return 1;
+               return 0;
+       }
+
+       static void SocketReceive ()
+       {
+               byte [] bytes = new byte [50];
+               try {
+                       socket.Receive (bytes);
+               } catch (SocketException) {
+                       socketThreadRunning = false;
+               }
+       }
+}


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

Added: trunk/gert/standalone/bug75825/default.build
===================================================================
--- trunk/gert/standalone/bug75825/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75825/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,52 @@
+<project name="bug75825" 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>
+
+       <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-2.0,net-2.0" />
+       
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <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">
+                       <nowarn>
+                               <warning number="0168" />
+                       </nowarn>
+                       <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/bug75825/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug75825/test.cs
===================================================================
--- trunk/gert/standalone/bug75825/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75825/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,13 @@
+class M
+{
+       static void Main ()
+       {
+               C c;
+       }
+}
+
+class A<a> { }
+
+class B<a> : A<a> { }
+
+class C : B<C> { }


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

Added: trunk/gert/standalone/bug75903/default.build
===================================================================
--- trunk/gert/standalone/bug75903/default.build        2007-05-05 09:27:08 UTC 
(rev 76733)
+++ trunk/gert/standalone/bug75903/default.build        2007-05-05 10:01:01 UTC 
(rev 76734)
@@ -0,0 +1,61 @@
+<project name="bug75903" 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 unless="${file::exists('out')}" />
+               <loadfile file="out" property="out" />
+               <fail unless="${string::index-of(out, 'Override') != 
-1}">#1</fail>
+               <fail unless="${string::index-of(out, 'Interface') != 
-1}">#2</fail>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


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

Added: trunk/gert/standalone/bug75903/test.cs
===================================================================
--- trunk/gert/standalone/bug75903/test.cs      2007-05-05 09:27:08 UTC (rev 
76733)
+++ trunk/gert/standalone/bug75903/test.cs      2007-05-05 10:01:01 UTC (rev 
76734)
@@ -0,0 +1,32 @@
+using System;
+
+abstract class A : I
+{
+       protected abstract void M ();
+
+       void I.M ()
+       {
+               Console.WriteLine ("Interface");
+       }
+}
+
+interface I
+{
+       void M ();
+}
+
+class C : A, I
+{
+       protected override void M ()
+       {
+               Console.WriteLine ("Override");
+       }
+
+       public static void Main ()
+       {
+               C c = new C ();
+               c.M ();
+               I i = c;
+               i.M ();
+       }
+}


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

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

Reply via email to