Merge pull request #4998 from kumpera/fix_56684
[mono.git] / mono / tests / unhandled-exception-6.cs
index adce560b819c33c5cecacea93042e40cf10bdbfa..7ed54d333006cfbf8d83185ffc7d5b9d720d9369 100644 (file)
@@ -10,9 +10,12 @@ class CustomException : Exception
 
 class Driver
 {
-       /* expected exit code: 0 */
+       /* expected exit code: 255 */
        static void Main (string[] args)
        {
+               if (Environment.GetEnvironmentVariable ("TEST_UNHANDLED_EXCEPTION_HANDLER") != null)
+                       AppDomain.CurrentDomain.UnhandledException += (s, e) => {};
+
                var action = new Action (Delegate);
                var ares = action.BeginInvoke (Callback, null);