Author: gert
Date: 2007-10-09 13:45:08 -0400 (Tue, 09 Oct 2007)
New Revision: 87205
Added:
trunk/gert/standalone/bug332206/
trunk/gert/standalone/bug332206/default.build
trunk/gert/standalone/bug332206/test.cs
trunk/gert/standalone/bug332206/test.exe.config
Modified:
trunk/gert/standalone/known-issues
Log:
Added test for bug #332206.
Added: trunk/gert/standalone/bug332206/default.build
===================================================================
--- trunk/gert/standalone/bug332206/default.build 2007-10-09 17:26:39 UTC
(rev 87204)
+++ trunk/gert/standalone/bug332206/default.build 2007-10-09 17:45:08 UTC
(rev 87205)
@@ -0,0 +1,58 @@
+<project name="bug332206" 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/bug332206/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug332206/test.cs
===================================================================
--- trunk/gert/standalone/bug332206/test.cs 2007-10-09 17:26:39 UTC (rev
87204)
+++ trunk/gert/standalone/bug332206/test.cs 2007-10-09 17:45:08 UTC (rev
87205)
@@ -0,0 +1,20 @@
+using System;
+using System.Threading;
+
+class Program
+{
+ static int _counter;
+
+ static void Main ()
+ {
+ new Timer (new TimerCallback (tmrThreadingTimer_TimerCallback),
null, 0, 1000);
+ while (_counter < 5) {
+ }
+ }
+
+ static void tmrThreadingTimer_TimerCallback (object state)
+ {
+ _counter++;
+ throw new Exception ("Booom");
+ }
+}
Property changes on: trunk/gert/standalone/bug332206/test.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug332206/test.exe.config
===================================================================
--- trunk/gert/standalone/bug332206/test.exe.config 2007-10-09 17:26:39 UTC
(rev 87204)
+++ trunk/gert/standalone/bug332206/test.exe.config 2007-10-09 17:45:08 UTC
(rev 87205)
@@ -0,0 +1,5 @@
+<configuration>
+ <runtime>
+ <legacyUnhandledExceptionPolicy enabled="1"/>
+ </runtime>
+</configuration>
Property changes on: trunk/gert/standalone/bug332206/test.exe.config
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2007-10-09 17:26:39 UTC (rev 87204)
+++ trunk/gert/standalone/known-issues 2007-10-09 17:45:08 UTC (rev 87205)
@@ -85,4 +85,5 @@
bug326288/**
bug327438/**
bug331126/**
-bug331958/**
\ No newline at end of file
+bug331958/**
+bug332206/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches