Author: gert
Date: 2007-09-04 13:51:44 -0400 (Tue, 04 Sep 2007)
New Revision: 85311
Added:
trunk/gert/standalone/bug82666/
trunk/gert/standalone/bug82666/default.build
trunk/gert/standalone/bug82666/test.cs
Removed:
trunk/gert/standalone/bug82620/
trunk/gert/standalone/bug82652/
Modified:
trunk/gert/standalone/known-issues
Log:
Added test for bug #82666. Removed tests that are now part of mcs/tests.
Added: trunk/gert/standalone/bug82666/default.build
===================================================================
--- trunk/gert/standalone/bug82666/default.build 2007-09-04 17:27:43 UTC
(rev 85310)
+++ trunk/gert/standalone/bug82666/default.build 2007-09-04 17:51:44 UTC
(rev 85311)
@@ -0,0 +1,57 @@
+<project name="bug82666" 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.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" />
+ <if test="${framework::exists('net-2.0')}">
+ <property
name="nant.settings.currentframework" value="net-2.0" />
+ <call target="verify" />
+ </if>
+ <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">
+ <sources>
+ <include name="test.cs" />
+ </sources>
+ </csc>
+ </target>
+
+ <target name="verify">
+ <exec
program="${framework::get-sdk-directory(framework::get-target-framework())}/peverify.exe"
managed="true">
+ <arg value="/NOLOGO" />
+ <arg value="/QUIET" />
+ <arg file="test.dll" />
+ </exec>
+ </target>
+
+ <target name="rebuild" depends="clean, build" />
+</project>
Property changes on: trunk/gert/standalone/bug82666/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug82666/test.cs
===================================================================
--- trunk/gert/standalone/bug82666/test.cs 2007-09-04 17:27:43 UTC (rev
85310)
+++ trunk/gert/standalone/bug82666/test.cs 2007-09-04 17:51:44 UTC (rev
85311)
@@ -0,0 +1,11 @@
+using System.Collections;
+
+class Program
+{
+ public static IEnumerable TestMethod ()
+ {
+ try {
+ yield break;
+ } finally { }
+ }
+}
Property changes on: trunk/gert/standalone/bug82666/test.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2007-09-04 17:27:43 UTC (rev 85310)
+++ trunk/gert/standalone/known-issues 2007-09-04 17:51:44 UTC (rev 85311)
@@ -77,5 +77,4 @@
bug82550/**
bug82595/**
bug82616/**
-bug82620/**
-bug82652/**
+bug82666/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches