* Makefile.am: added 2 new tests
* threadpool-exceptions6.cs: new thread.abort inside the threadpool
test.
* appdomain-unload.exe.config: this test does not work in .NET without
having the legacy unhandled exception mode enabled.
threadpool-exceptions2.cs \
threadpool-exceptions3.cs \
threadpool-exceptions4.cs \
+ threadpool-exceptions5.cs \
+ threadpool-exceptions6.cs \
base-definition.cs \
bug-27420.cs \
bug-47295.cs \
EXTRA_DIST += unhandled-exception-base-configuration.config
EXTRA_DIST += unhandled-exception-legacy-configuration.config
+EXTRA_DIST += appdomain-unload.exe.config
EXTRA_DIST += unhandled-exception-test-case.2.cs
EXTRA_DIST += unhandled-exception-test-runner.2.cs
unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <runtime>
+ <legacyUnhandledExceptionPolicy enabled="1"/>
+ </runtime>
+</configuration>
--- /dev/null
+using System;
+using System.Threading;
+
+class Test {
+ static int Main ()
+ {
+ AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
+ WaitCallback wcb = new WaitCallback ((a) => {
+ Thread.CurrentThread.Abort ();
+ });
+ wcb.BeginInvoke (wcb, null, null);
+ Thread.Sleep (1000);
+ return 0;
+ }
+
+ static void OnUnhandledException (object sender, UnhandledExceptionEventArgs e)
+ {
+ Environment.Exit (1);
+ }
+}
+