Author: zoltan
Date: 2007-09-07 13:55:02 -0400 (Fri, 07 Sep 2007)
New Revision: 85491
Modified:
trunk/mono/mono/tests/ChangeLog
trunk/mono/mono/tests/Makefile.am
trunk/mono/mono/tests/async-exceptions.cs
Log:
2007-09-07 Zoltan Varga <[EMAIL PROTECTED]>
* async-exceptions.cs Makefile.am: Add a test for frames with a frame
pointer.
Modified: trunk/mono/mono/tests/ChangeLog
===================================================================
--- trunk/mono/mono/tests/ChangeLog 2007-09-07 17:19:27 UTC (rev 85490)
+++ trunk/mono/mono/tests/ChangeLog 2007-09-07 17:55:02 UTC (rev 85491)
@@ -1,5 +1,7 @@
2007-09-07 Zoltan Varga <[EMAIL PROTECTED]>
+ * async-exceptions.cs Makefile.am: Add a test for frames with a frame
pointer.
+
* async-exceptions.cs Makefile.am: New test case, not working yet.
* Makefile.am: Allways distribute coreclr-security.cs.
Modified: trunk/mono/mono/tests/Makefile.am
===================================================================
--- trunk/mono/mono/tests/Makefile.am 2007-09-07 17:19:27 UTC (rev 85490)
+++ trunk/mono/mono/tests/Makefile.am 2007-09-07 17:55:02 UTC (rev 85491)
@@ -568,6 +568,7 @@
$(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
test-async-exceptions : async-exceptions.exe
for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME)
--inject-async-exc Tests:foo $$i async-exceptions.exe || exit 1; done
+ for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME)
--inject-async-exc Tests:bar $$i async-exceptions.exe || exit 1; done
# Useful if mono is compiled with --enable-shared=no
patch-libtool:
Modified: trunk/mono/mono/tests/async-exceptions.cs
===================================================================
--- trunk/mono/mono/tests/async-exceptions.cs 2007-09-07 17:19:27 UTC (rev
85490)
+++ trunk/mono/mono/tests/async-exceptions.cs 2007-09-07 17:55:02 UTC (rev
85491)
@@ -7,18 +7,33 @@
public class Tests {
// Async exceptions will be raised while executing this method
+ // On amd64, this doesn't have a frame pointer
static void foo () {
for (int i = 0; i < 10; ++i)
;
}
+ // This does have a frame pointer
+ static void bar () {
+ for (int i = 0; i < 10; ++i)
+ ;
+
+ try {
+ } catch {
+ }
+ }
+
public static int Main (String[] args) {
try {
foo ();
} catch (NullReferenceException ex) {
- return 0;
}
+ try {
+ bar ();
+ } catch (NullReferenceException ex) {
+ }
+
return 0;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches