[corlib] Disable ThreadLocalTests.DisposeOnThreadExit on MonoTouch, it's randomly...
[mono.git] / mcs / class / corlib / Test / System.Threading / ThreadLocalTests.cs
index aefa9ab41083fb036fef9d981c7007ec5993f1eb..8c063dccdc879ca860f78b88fe19806d97ff35bf 100644 (file)
@@ -193,6 +193,10 @@ namespace MonoTests.System.Threading
                }
 
                [Test]
+               [Category ("NotWorking")] // Finalizers aren't guaranteed
+#if MONOTOUCH
+               [Category ("NotWorking")] // https://bugzilla.xamarin.com/show_bug.cgi?id=34617
+#endif
                public void DisposeOnThreadExit ()
                {
                        var threadLocal = new ThreadLocal<SetMreOnFinalize>();
@@ -210,7 +214,7 @@ namespace MonoTests.System.Threading
                        }, 500);
 
                        if (!mres.IsSet)
-                               Assert.Fail ();
+                               Assert.Fail ("Finalizer didn't run after thread termination");
                }
        }
 }