Author: gert
Date: 2007-07-13 00:26:11 -0400 (Fri, 13 Jul 2007)
New Revision: 81922
Added:
trunk/gert/standalone/bug82034/test1.cs
Removed:
trunk/gert/standalone/bug82034/test.cs
Modified:
trunk/gert/standalone/bug82034/default.build
Log:
Improve test to also cover MS bug.
Modified: trunk/gert/standalone/bug82034/default.build
===================================================================
--- trunk/gert/standalone/bug82034/default.build 2007-07-13 04:13:54 UTC
(rev 81921)
+++ trunk/gert/standalone/bug82034/default.build 2007-07-13 04:26:11 UTC
(rev 81922)
@@ -13,7 +13,8 @@
<delete>
<fileset>
<include name="out" />
- <include name="test.exe" />
+ <include name="test1.exe" />
+ <include name="test2.exe" />
</fileset>
</delete>
</target>
@@ -34,16 +35,23 @@
</target>
<target name="compile">
- <csc target="exe" define="${csc.defines}" output="test.exe"
warnaserror="true" warninglevel="4">
+ <csc target="exe" define="${csc.defines}" output="test1.exe"
warnaserror="true" warninglevel="4">
<sources>
- <include name="test.cs" />
+ <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="test.exe" managed="true" output="out" />
- <fail if="${file::exists('out')}" />
+ <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" />
Deleted: trunk/gert/standalone/bug82034/test.cs
===================================================================
--- trunk/gert/standalone/bug82034/test.cs 2007-07-13 04:13:54 UTC (rev
81921)
+++ trunk/gert/standalone/bug82034/test.cs 2007-07-13 04:26:11 UTC (rev
81922)
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-class Program
-{
- static int x = 2;
-
- static int Main (string [] args)
- {
- foreach (bool b in test ()) {
- if (b == true) {
- }
- }
- if (x != 0)
- return 1;
- return 0;
- }
-
- static IEnumerable<bool> setX ()
- {
- x = 1;
- try {
- yield return true;
- } finally {
- x = 0;
- }
- }
-
- static IEnumerable<bool> test ()
- {
- foreach (bool b in setX ()) {
- yield return b;
- goto label;
- }
- label:
- yield break;
- }
-}
Copied: trunk/gert/standalone/bug82034/test1.cs (from rev 81769,
trunk/gert/standalone/bug82034/test.cs)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches