Browse Source

[wasm] Update corlib testsuite to disable multi-threaded tests.

Rodrigo Kumpera 8 years ago
parent
commit
68eb7bc3f8

+ 1 - 0
mcs/class/corlib/Test/System.Threading/ReaderWriterLockTest.cs

@@ -94,6 +94,7 @@ namespace MonoTests.System.Threading
 		}
 				
 		[Test]
+		[Category ("MultiThreaded")]
 		public void TestAcquireLocks ()
 		{
 			rwlock = new ReaderWriterLock ();

+ 1 - 0
mcs/class/corlib/Test/System.Threading/ThreadLocalTests.cs

@@ -52,6 +52,7 @@ namespace MonoTests.System.Threading
 		}
 		
 		[Test]
+		[Category ("MultiThreaded")]
 		public void ThreadedTest ()
 		{
 			AssertThreadLocal ();

+ 2 - 0
mcs/class/corlib/Test/System.Threading/ThreadTest.cs

@@ -1202,6 +1202,7 @@ namespace MonoTests.System.Threading
 		}
 
 		[Test]
+		[Category ("MultiThreaded")]
 		public void TestApartmentState ()
 		{
 			Thread t1 = new Thread (new ThreadStart (Start));
@@ -1281,6 +1282,7 @@ namespace MonoTests.System.Threading
 		}
 
 		[Test]
+		[Category ("MultiThreaded")]
 		public void TestTrySetApartmentStateRunning ()
 		{
 			Thread t1 = new Thread (new ThreadStart (Start));

+ 2 - 0
mcs/class/corlib/Test/System.Threading/WaitHandleTest.cs

@@ -531,6 +531,7 @@ namespace MonoTests.System.Threading {
 
 		[Test]
 		[ExpectedException (typeof (AbandonedMutexException))]
+		[Category ("MultiThreaded")]
 		public void WaitAllWithOneAbandonedMutex ()
 		{
 			using (var m1 = new Mutex (false)) {
@@ -577,6 +578,7 @@ namespace MonoTests.System.Threading {
 		}
 
 		[Test]
+		[Category ("MultiThreaded")]
 		public void WaitAnyWithTimeoutAndSpuriousWake ()
 		{
 			/* This is to test that WaitEvent.WaitAny is not going to wait largely

+ 1 - 0
mcs/class/corlib/Test/System/LazyTest.cs

@@ -111,6 +111,7 @@ namespace MonoTests.System
 		static int counter;
 
 		[Test]
+		[Category ("MultiThreaded")]
 		public void EnsureSingleThreadSafeExecution ()
 		{
 			counter = 42;