Author: gert
Date: 2007-10-15 14:06:04 -0400 (Mon, 15 Oct 2007)
New Revision: 87527
Modified:
trunk/gert/standalone/bug332206/default.build
trunk/gert/standalone/bug332206/test.cs
Log:
Fixed test.
Modified: trunk/gert/standalone/bug332206/default.build
===================================================================
--- trunk/gert/standalone/bug332206/default.build 2007-10-15 17:43:32 UTC
(rev 87526)
+++ trunk/gert/standalone/bug332206/default.build 2007-10-15 18:06:04 UTC
(rev 87527)
@@ -51,7 +51,12 @@
<target name="run" depends="compile">
<exec program="test.exe" managed="true" output="out" />
- <fail if="${file::exists('out')}" />
+ <fail unless="${file::exists('out')}">#1</fail>
+ <loadfile file="out" property="out" />
+ <fail unless="${string::index-of(out,'Unhandled Exception:
System.Exception: Booom1') != -1}">#2</fail>
+ <fail unless="${string::index-of(out,'Unhandled Exception:
System.Exception: Booom2') != -1}">#3</fail>
+ <fail unless="${string::index-of(out,'Unhandled Exception:
System.Exception: Booom3') != -1}">#4</fail>
+ <fail unless="${string::index-of(out,'Unhandled Exception:
System.Exception: Booom4') != -1}">#5</fail>
</target>
<target name="rebuild" depends="clean, build" />
Modified: trunk/gert/standalone/bug332206/test.cs
===================================================================
--- trunk/gert/standalone/bug332206/test.cs 2007-10-15 17:43:32 UTC (rev
87526)
+++ trunk/gert/standalone/bug332206/test.cs 2007-10-15 18:06:04 UTC (rev
87527)
@@ -1,4 +1,5 @@
using System;
+using System.Globalization;
using System.Threading;
class Program
@@ -15,6 +16,6 @@
static void tmrThreadingTimer_TimerCallback (object state)
{
_counter++;
- throw new Exception ("Booom");
+ throw new Exception ("Booom" + _counter.ToString
(CultureInfo.InvariantCulture));
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches