Don't ignore drives with type "aufs" or "overlay" (Xamarin-31021)
[mono.git] / mono / tests / unhandled-exception-3.cs
1 using System;
2 using System.Diagnostics;
3 using System.Threading;
4 using System.Threading.Tasks;
5
6 class CustomException : Exception
7 {
8 }
9
10 class Driver
11 {
12         /* expected exit code: 0 */
13         static void Main (string[] args)
14         {
15                 ManualResetEvent mre = new ManualResetEvent (false);
16
17                 ThreadPool.QueueUserWorkItem (_ => { try { throw new CustomException (); } finally { mre.Set (); } });
18
19                 if (!mre.WaitOne (5000))
20                         Environment.Exit (2);
21
22                 /* Give a chance to the threadpool thread to finish executing the exception
23                  * unwinding after the finally, before we exit with status 0 on the current thread */
24                 Thread.Sleep (1000);
25
26                 Environment.Exit (0);
27         }
28 }