Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* bug-80307.cs, Makefile.am: Added test for bug 80307.

svn path=/trunk/mono/; revision=71230
  • Loading branch information...
commit 0860f8c79afc7fd343e2c7db14daa876e06be792 1 parent 9b0f610
Massimiliano Mantione authored
3  mono/tests/ChangeLog
View
@@ -1,3 +1,6 @@
+2007-01-17 Massimiliano Mantione <massi@ximian.com>
+ * bug-80307.cs, Makefile.am: Added test for bug 80307.
+
2007-01-15 Miguel de Icaza <miguel@novell.com>
* load-missing.il: Add test for missing assembly reference in
12 mono/tests/Makefile.am
View
@@ -310,13 +310,13 @@ EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_CS2_SRC) $(TEST_IL_SRC) $(TEST_IL2_
# mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
if POWERPC
-test: testjit test-type-load test-inline-call-stack
+test: testjit test-type-load test-inline-call-stack test-bug-80307
else
# Can't use mkbundle on win32 since there is no static build there
if PLATFORM_WIN32
-test: testjit test-type-load test-inline-call-stack
+test: testjit test-type-load test-inline-call-stack test-bug-80307
else
-test: testjit testbundle test-type-load test-inline-call-stack test-iomap-regression
+test: testjit testbundle test-type-load test-inline-call-stack test-iomap-regression test-bug-80307
endif
endif
@@ -490,6 +490,12 @@ test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(
test-inline-call-stack: TestDriver.dll test-inline-call-stack-library.dll test-inline-call-stack.exe
$(RUNTIME) test-inline-call-stack.exe
+EXTRA_DIST += bug-80307.cs
+bug-80307.exe: $(srcdir)/bug-80307.cs
+ $(MCS) -r:System.Web bug-80307.cs
+test-bug-80307: bug-80307.exe
+ $(RUNTIME) bug-80307.exe
+
# Useful if mono is compiled with --enable-shared=no
patch-libtool:
cp "../../libtool" .
38 mono/tests/bug-80307.cs
View
@@ -0,0 +1,38 @@
+using System;
+using System.IO;
+using System.Web;
+using System.Web.Hosting;
+
+class TinyHost : MarshalByRefObject
+{
+ public static TinyHost CreateHost ()
+ {
+ string path = Directory.GetCurrentDirectory ();
+ string bin = Path.Combine (path, "bin");
+ string asm = Path.GetFileName (typeof (TinyHost).Assembly.Location);
+
+ Directory.CreateDirectory (bin);
+ File.Copy (asm, Path.Combine (bin, asm), true);
+
+ return (TinyHost) ApplicationHost.CreateApplicationHost (
+ typeof (TinyHost), "/", path);
+
+ }
+
+ public void Execute (string page)
+ {
+ SimpleWorkerRequest req = new SimpleWorkerRequest (
+ page, "", Console.Out);
+ HttpRuntime.ProcessRequest (req);
+ }
+
+ static void Main ()
+ {
+ TinyHost h = CreateHost ();
+ StreamWriter w = new StreamWriter ("page.aspx");
+ w.WriteLine (@"<%@ Page Language=""C#"" %>");
+ w.WriteLine (@"<% Console.WriteLine(""Hello""); %>");
+ w.Close ();
+ h.Execute ("page.aspx");
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.