Skip to content

Commit

Permalink
Improve failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed May 30, 2012
1 parent 1485c35 commit 0b01be2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mcs/class/corlib/Test/System.Threading/ThreadTest.cs
Expand Up @@ -477,7 +477,6 @@ public void TestIsBackground1 ()
}

[Test]
[Category ("NotDotNet")] // on MS, ThreadState is immediately Stopped after Abort
public void TestIsBackground2 ()
{
C2Test test1 = new C2Test();
Expand All @@ -488,7 +487,9 @@ public void TestIsBackground2 ()
} finally {
TestThread.Abort();
}
Assert.IsTrue (TestThread.IsBackground, "#52 Is Background Changed to Start ");

if (TestThread.IsAlive)
Assert.IsTrue (TestThread.IsBackground, "#52 Is Background Changed to Start ");
}

[Test]
Expand Down

0 comments on commit 0b01be2

Please sign in to comment.