projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* ThreadTest.cs: Enabled test for bug #81658, and uncommented code
[mono.git]
/
mcs
/
class
/
corlib
/
Test
/
System.Threading
/
ThreadTest.cs
diff --git
a/mcs/class/corlib/Test/System.Threading/ThreadTest.cs
b/mcs/class/corlib/Test/System.Threading/ThreadTest.cs
index ad95b4c052e49ee093df8f0d6d9468e81aaff81b..db21332f30c8b81f8c71a1bf242dd3ba4e55c2ba 100644
(file)
--- 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;
+using System.Globalization;
using System.Security.Principal;
using System.Threading;
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);
Assert.IsTrue (n < 200, "Timeout while waiting for abort");
CheckIsNotRunning ("t6", t);
- }
+ }
void CheckIsRunning (string s, Thread t)
{
void CheckIsRunning (string s, Thread t)
{
@@
-652,7
+653,6
@@
namespace MonoTests.System.Threading
}
[Test] // bug #81720
}
[Test] // bug #81720
- [Category ("NotWorking")]
public void IsBackGround ()
{
Thread t1 = new Thread (new ThreadStart (Start));
public void IsBackGround ()
{
Thread t1 = new Thread (new ThreadStart (Start));
@@
-661,6
+661,7
@@
namespace MonoTests.System.Threading
t1.Start ();
t1.Join ();
Assert.AreEqual (ThreadState.Stopped, t1.ThreadState, "#A3");
t1.Start ();
t1.Join ();
Assert.AreEqual (ThreadState.Stopped, t1.ThreadState, "#A3");
+
try {
bool isBackGround = t1.IsBackground;
Assert.Fail ("#A4: " + isBackGround.ToString ());
try {
bool isBackGround = t1.IsBackground;
Assert.Fail ("#A4: " + isBackGround.ToString ());
@@
-678,6
+679,7
@@
namespace MonoTests.System.Threading
t2.Start ();
t2.Join ();
Assert.AreEqual (ThreadState.Stopped, t2.ThreadState, "#B4");
t2.Start ();
t2.Join ();
Assert.AreEqual (ThreadState.Stopped, t2.ThreadState, "#B4");
+
try {
bool isBackGround = t2.IsBackground;
Assert.Fail ("#B5: " + isBackGround.ToString ());
try {
bool isBackGround = t2.IsBackground;
Assert.Fail ("#B5: " + isBackGround.ToString ());
@@
-697,7
+699,6
@@
namespace MonoTests.System.Threading
}
[Test] // bug #81658
}
[Test] // bug #81658
- [Category ("NotWorking")]
public void ApartmentState_StoppedThread ()
{
Thread t1 = new Thread (new ThreadStart (Start));
public void ApartmentState_StoppedThread ()
{
Thread t1 = new Thread (new ThreadStart (Start));
@@
-782,7
+783,7
@@
namespace MonoTests.System.Threading
Assert.IsTrue (exception_occured, "Thread1 Started Invalid Exception Occured");
}
}
Assert.IsTrue (exception_occured, "Thread1 Started Invalid Exception Occured");
}
}
-
+
public class TestUtil
{
public static void WaitForNotAlive (Thread t, string s)
public class TestUtil
{
public static void WaitForNotAlive (Thread t, string s)