X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem.Threading%2FThreadTest.cs;h=db21332f30c8b81f8c71a1bf242dd3ba4e55c2ba;hb=beb8d0c0df62c6bf6d9b3672c32f52ec9b358da6;hp=eddef0f59aefb94e9ad7a20221c2f8770299b3f3;hpb=8277bf73e249a28d858b1b7ede9078e4e243f9d0;p=mono.git diff --git a/mcs/class/corlib/Test/System.Threading/ThreadTest.cs b/mcs/class/corlib/Test/System.Threading/ThreadTest.cs index eddef0f59ae..db21332f30c 100644 --- a/mcs/class/corlib/Test/System.Threading/ThreadTest.cs +++ b/mcs/class/corlib/Test/System.Threading/ThreadTest.cs @@ -10,6 +10,7 @@ // using System; +using System.Globalization; using System.Security.Principal; using System.Threading; @@ -596,7 +597,7 @@ namespace MonoTests.System.Threading Assert.IsTrue (n < 200, "Timeout while waiting for abort"); CheckIsNotRunning ("t6", t); - } + } void CheckIsRunning (string s, Thread t) { @@ -661,8 +662,6 @@ namespace MonoTests.System.Threading t1.Join (); Assert.AreEqual (ThreadState.Stopped, t1.ThreadState, "#A3"); - // uncomment when bug #81658 is fixed - /* try { bool isBackGround = t1.IsBackground; Assert.Fail ("#A4: " + isBackGround.ToString ()); @@ -671,7 +670,6 @@ namespace MonoTests.System.Threading Assert.IsNull (ex.InnerException, "#A6"); Assert.IsNotNull (ex.Message, "#A7"); } - */ Thread t2 = new Thread (new ThreadStart (Start)); Assert.AreEqual (ThreadState.Unstarted, t2.ThreadState, "#B1"); @@ -681,8 +679,7 @@ namespace MonoTests.System.Threading t2.Start (); t2.Join (); Assert.AreEqual (ThreadState.Stopped, t2.ThreadState, "#B4"); - // uncomment when bug #81658 is fixed - /* + try { bool isBackGround = t2.IsBackground; Assert.Fail ("#B5: " + isBackGround.ToString ()); @@ -691,7 +688,6 @@ namespace MonoTests.System.Threading Assert.IsNull (ex.InnerException, "#B7"); Assert.IsNotNull (ex.Message, "#B8"); } - */ } } @@ -703,7 +699,6 @@ namespace MonoTests.System.Threading } [Test] // bug #81658 - [Category ("NotWorking")] public void ApartmentState_StoppedThread () { Thread t1 = new Thread (new ThreadStart (Start)); @@ -788,7 +783,7 @@ namespace MonoTests.System.Threading Assert.IsTrue (exception_occured, "Thread1 Started Invalid Exception Occured"); } } - + public class TestUtil { public static void WaitForNotAlive (Thread t, string s)