Author: gert
Date: 2008-01-30 13:27:26 -0500 (Wed, 30 Jan 2008)
New Revision: 94397
Added:
trunk/gert/standalone/bug357062/
trunk/gert/standalone/bug357062/default.build
trunk/gert/standalone/bug357062/test.cs
Log:
Added test for bug #357062.
Added: trunk/gert/standalone/bug357062/default.build
===================================================================
--- trunk/gert/standalone/bug357062/default.build 2008-01-30 18:14:17 UTC
(rev 94396)
+++ trunk/gert/standalone/bug357062/default.build 2008-01-30 18:27:26 UTC
(rev 94397)
@@ -0,0 +1,28 @@
+<project name="bug357062" default="rebuild">
+ <include buildfile="../../build/common.build" />
+
+ <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="compile" depends="init">
+ <csc target="exe" define="${csc.defines}" output="test.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="../../build/common/Assert.cs" />
+ <include name="test.cs" />
+ </sources>
+ </csc>
+ </target>
+
+ <target name="run-test" depends="compile">
+ <exec program="test.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+</project>
Property changes on: trunk/gert/standalone/bug357062/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug357062/test.cs
===================================================================
--- trunk/gert/standalone/bug357062/test.cs 2008-01-30 18:14:17 UTC (rev
94396)
+++ trunk/gert/standalone/bug357062/test.cs 2008-01-30 18:27:26 UTC (rev
94397)
@@ -0,0 +1,15 @@
+using System;
+using System.Diagnostics;
+using System.IO;
+
+class Program
+{
+ [STAThread]
+ static void Main ()
+ {
+ string dir = AppDomain.CurrentDomain.BaseDirectory;
+
+ ProcessModule main = Process.GetCurrentProcess ().MainModule;
+ Assert.AreEqual (Path.Combine (dir, "test.exe"), main.FileName,
"#1");
+ }
+}
Property changes on: trunk/gert/standalone/bug357062/test.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches