Quellcode durchsuchen

[corlib] annotate failing tests when running in interpreter

Bernhard Urban vor 8 Jahren
Ursprung
Commit
879f4bc60f
24 geänderte Dateien mit 59 neuen und 1 gelöschten Zeilen
  1. 1 0
      mcs/class/corlib/Test/Microsoft.Win32/RegistryKeyTest.cs
  2. 2 0
      mcs/class/corlib/Test/System.Collections.Concurrent/PartitionerTests.cs
  3. 1 0
      mcs/class/corlib/Test/System.IO/DriveInfoTest.cs
  4. 4 0
      mcs/class/corlib/Test/System.Reflection.Emit/DynamicMethodTest.cs
  5. 1 0
      mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs
  6. 1 0
      mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs
  7. 5 0
      mcs/class/corlib/Test/System.Runtime.ExceptionServices/ExceptionDispatchInfoTest.cs
  8. 1 0
      mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs
  9. 1 0
      mcs/class/corlib/Test/System.Runtime.Remoting.Proxies/RealProxyTest.cs
  10. 2 0
      mcs/class/corlib/Test/System.Runtime.Remoting/ContextTest.cs
  11. 13 0
      mcs/class/corlib/Test/System.Runtime.Remoting/SynchronizationAttributeTest.cs
  12. 1 0
      mcs/class/corlib/Test/System.Runtime.Serialization/SerializationTest.cs
  13. 1 0
      mcs/class/corlib/Test/System.Threading/InterlockedTest.cs
  14. 1 0
      mcs/class/corlib/Test/System.Threading/ThreadTest.cs
  15. 4 0
      mcs/class/corlib/Test/System/ConvertTest.cs
  16. 2 0
      mcs/class/corlib/Test/System/DecimalTest-Microsoft.cs
  17. 6 0
      mcs/class/corlib/Test/System/DecimalTest.cs
  18. 4 0
      mcs/class/corlib/Test/System/DelegateTest.cs
  19. 2 0
      mcs/class/corlib/Test/System/ExceptionTest.cs
  20. 2 1
      mcs/class/corlib/Test/System/GCTest.cs
  21. 1 0
      mcs/class/corlib/Test/System/TimeZoneTest.cs
  22. 1 0
      mcs/class/corlib/Test/System/TypedReferenceCas.cs
  23. 1 0
      mcs/class/corlib/Test/System/TypedReferenceTest.cs
  24. 1 0
      mcs/class/corlib/Test/System/ValueTypeTest.cs

+ 1 - 0
mcs/class/corlib/Test/Microsoft.Win32/RegistryKeyTest.cs

@@ -3189,6 +3189,7 @@ namespace MonoTests.Microsoft.Win32
 
 		// Bug Xamarin 3632
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TypeCastTests ()
 		{
 			string subKeyName = Guid.NewGuid ().ToString ();

+ 2 - 0
mcs/class/corlib/Test/System.Collections.Concurrent/PartitionerTests.cs

@@ -37,6 +37,7 @@ namespace MonoTests.System.Collections.Concurrent
 	public class PartitionerTests
 	{
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void PartitionerCreateIntegerWithExplicitRange ()
 		{
 			OrderablePartitioner<Tuple<int, int>> partitioner = Partitioner.Create (1, 20, 5);
@@ -58,6 +59,7 @@ namespace MonoTests.System.Collections.Concurrent
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void PartitionerCreateLongWithExplicitRange ()
 		{
 			OrderablePartitioner<Tuple<long, long>> partitioner = Partitioner.Create ((long)1, (long)20, (long)5);

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

@@ -65,6 +65,7 @@ namespace MonoTests.System.IO
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void GetDrivesValidInfo ()
 		{
 			var drives = DriveInfo.GetDrives ();

+ 4 - 0
mcs/class/corlib/Test/System.Reflection.Emit/DynamicMethodTest.cs

@@ -470,6 +470,7 @@ namespace MonoTests.System.Reflection.Emit
 
 	public delegate object RetObj();
 		[Test] //#640702
+		[Category ("InterpreterNotWorking")]
 		public void GetCurrentMethodWorksWithDynamicMethods ()
 		{
 	        DynamicMethod dm = new DynamicMethod("Foo", typeof(object), null);
@@ -526,6 +527,7 @@ namespace MonoTests.System.Reflection.Emit
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ExceptionHandling ()
 		{
 			var method = new DynamicMethod ("", typeof(void), new[] { typeof(int) }, typeof (DynamicMethodTest));
@@ -592,6 +594,7 @@ namespace MonoTests.System.Reflection.Emit
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ExceptionHandlingWithExceptionDispatchInfo ()
 		{
 			var method = new DynamicMethod ("", typeof(void), new[] { typeof(int) }, typeof (DynamicMethodTest));
@@ -649,6 +652,7 @@ namespace MonoTests.System.Reflection.Emit
 		}
 
 		[Test] //see bxc #59334
+		[Category ("InterpreterNotWorking")]
 		public void ExceptionWrapping ()
 		{
 			AssemblyBuilder ab = AppDomain.CurrentDomain.DefineDynamicAssembly (new AssemblyName ("ehatevfheiw"), AssemblyBuilderAccess.Run);

+ 1 - 0
mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs

@@ -1024,6 +1024,7 @@ namespace MonoTests.System.Reflection.Emit
 	    }
 
 		[Test]//bug #626441
+		[Category ("InterpreterNotWorking")]
 		public void CanCallVarargMethods ()
 		{
 			var tb = module.DefineType ("foo");

+ 1 - 0
mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs

@@ -1212,6 +1212,7 @@ namespace MonoTests.System.Reflection.Emit
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void DefineDefaultConstructor_Parent_DefaultCtorInaccessible ()
 		{
 			TypeBuilder tb;

+ 5 - 0
mcs/class/corlib/Test/System.Runtime.ExceptionServices/ExceptionDispatchInfoTest.cs

@@ -66,6 +66,7 @@ namespace MonoTests.System.Runtime.ExceptionServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void Throw ()
 		{
 			Exception orig = null;
@@ -92,6 +93,7 @@ namespace MonoTests.System.Runtime.ExceptionServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ThrowWithEmptyFrames ()
 		{
 			var edi = ExceptionDispatchInfo.Capture (new OperationCanceledException ());
@@ -106,6 +108,7 @@ namespace MonoTests.System.Runtime.ExceptionServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void LastThrowWins ()
 		{
 			Exception e;
@@ -137,6 +140,7 @@ namespace MonoTests.System.Runtime.ExceptionServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ThrowMultipleCaptures ()
 		{
 			Exception e;
@@ -165,6 +169,7 @@ namespace MonoTests.System.Runtime.ExceptionServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void StackTraceUserCopy ()
 		{
 			try {

+ 1 - 0
mcs/class/corlib/Test/System.Runtime.InteropServices/MarshalTest.cs

@@ -963,6 +963,7 @@ namespace MonoTests.System.Runtime.InteropServices
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void CheckPtrToStructureWithFixedArrayAndBaseClassFields()
 		{
 			const int arraySize = 6;

+ 1 - 0
mcs/class/corlib/Test/System.Runtime.Remoting.Proxies/RealProxyTest.cs

@@ -28,6 +28,7 @@ namespace MonoTests.System.Runtime.Remoting.Proxies {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void InterfaceProxyGetTypeOkay ()
 		{
 			// Regression test for #17325

+ 2 - 0
mcs/class/corlib/Test/System.Runtime.Remoting/ContextTest.cs

@@ -40,6 +40,7 @@ namespace MonoTests.System.Runtime.Remoting
 		LocalDataStoreSlot slot;
 		
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestDoCallback ()
 		{
 			otherCtx = cbo.GetContext ();
@@ -54,6 +55,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 		
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestDatastore ()
 		{
 			otherCtx = cbo.GetContext ();

+ 13 - 0
mcs/class/corlib/Test/System.Runtime.Remoting/SynchronizationAttributeTest.cs

@@ -146,6 +146,7 @@ namespace MonoTests.System.Runtime.Remoting
 		bool otResult;
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestSynchronization ()
 		{
 			Thread tr = new Thread (new ThreadStart (FirstSyncThread));
@@ -169,6 +170,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestSupported ()
 		{
 			SincroRequiresNew ob = new SincroRequiresNew ();
@@ -181,6 +183,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestRequired ()
 		{
 			SincroRequiresNew ob = new SincroRequiresNew ();
@@ -193,6 +196,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestRequiresNew ()
 		{
 			SincroRequiresNew ob = new SincroRequiresNew ();
@@ -205,6 +209,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestNotSupported ()
 		{
 			SincroRequiresNew ob = new SincroRequiresNew ();
@@ -217,6 +222,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestLocked1 ()
 		{
 			sincob.Lock (false);
@@ -231,6 +237,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestLocked2 ()
 		{
 			Thread tr = new Thread (new ThreadStart (FirstNotSyncThread));
@@ -254,6 +261,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestLocked3 ()
 		{
 			Thread tr = new Thread (new ThreadStart (Lock1Thread));
@@ -273,6 +281,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestReentry ()
 		{
 			Thread tr = new Thread (new ThreadStart (FirstReentryThread));
@@ -296,6 +305,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestNoReentry ()
 		{
 			Thread tr = new Thread (new ThreadStart (FirstNoReentryThread));
@@ -319,6 +329,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestCallback ()
 		{
 			Thread tr = new Thread (new ThreadStart (CallbackThread));
@@ -333,6 +344,7 @@ namespace MonoTests.System.Runtime.Remoting
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestSynchronizationReleasedOnMultipleAcquire ()
 		{
 
@@ -355,6 +367,7 @@ namespace MonoTests.System.Runtime.Remoting
 		[Test]
 		[Category("NotDotNet")]
 		[Category ("MobileNotWorking")]
+		[Category ("InterpreterNotWorking")]
 		public void TestMonitorWait ()
 		{
 			Thread tr = new Thread (new ThreadStart (DoMonitorPulse));

+ 1 - 0
mcs/class/corlib/Test/System.Runtime.Serialization/SerializationTest.cs

@@ -30,6 +30,7 @@ namespace MonoTests.System.Runtime.Serialization
 
 #if FEATURE_REMOTING
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestSerialization ()
 		{
 			MethodTester mt = new MethodTester();

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

@@ -99,6 +99,7 @@ namespace MonoTests.System.Threading
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")] /* crashes on linux/armv7 */
 		public void TestCompareExchange_Flt ()
 		{
 			flt = flt_1;

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

@@ -307,6 +307,7 @@ namespace MonoTests.System.Threading
 
 		[Test]
 		[Category ("NotDotNet")] // it hangs.
+		[Category ("InterpreterNotWorking")] /* crashes on linux/arm64 */
 		public void TestStart()
 		{
 		{

+ 4 - 0
mcs/class/corlib/Test/System/ConvertTest.cs

@@ -1295,6 +1295,7 @@ namespace MonoTests.System {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestToInt32() {
 			long tryMax = long.MaxValue;
 			long tryMin = long.MinValue;
@@ -1473,6 +1474,7 @@ namespace MonoTests.System {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestToInt64() {
 			decimal longMax = long.MaxValue;
 			longMax += 1000000;
@@ -1867,6 +1869,7 @@ namespace MonoTests.System {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestToSingle() {
 			int iTest = 1;
 			try {
@@ -4916,6 +4919,7 @@ namespace MonoTests.System {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ChangeTypeFromInvalidDouble ()
 		{
 			// types which should generate OverflowException from double.NaN, etc.

+ 2 - 0
mcs/class/corlib/Test/System/DecimalTest-Microsoft.cs

@@ -708,6 +708,7 @@ namespace MonoTests.System
 		}
 		
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestToSingle()
 		{
 		    // Single Decimal.ToSingle(Decimal)
@@ -725,6 +726,7 @@ namespace MonoTests.System
 		}
 		
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestToDouble()
 		{
 		    Double d = Decimal.ToDouble(new Decimal(0, 0, 1, false, 0));

+ 6 - 0
mcs/class/corlib/Test/System/DecimalTest.cs

@@ -507,6 +507,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestConstructSingle ()
 		{
 			Decimal d;
@@ -629,6 +630,7 @@ namespace MonoTests.System
 
 		[Test]
 		[SetCulture("en-US")]
+		[Category ("InterpreterNotWorking")]
 		public void TestConstructDouble ()
 		{
 			Decimal d;
@@ -727,6 +729,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestConstructDoubleRound ()
 		{
 			decimal d;
@@ -979,6 +982,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ToInt32 ()
 		{
 			Decimal d = 254.9m;
@@ -1041,6 +1045,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ToSingle ()
 		{
 			Decimal d = 254.9m;
@@ -1054,6 +1059,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ToDouble ()
 		{
 			Decimal d = 254.9m;

+ 4 - 0
mcs/class/corlib/Test/System/DelegateTest.cs

@@ -925,6 +925,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 #if MONOTOUCH || FULL_AOT_RUNTIME
 		[Category ("NotWorking")] // #10539
 #endif
@@ -1101,6 +1102,7 @@ namespace MonoTests.System
 		event Action bar_handler;
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		[ExpectedException (typeof (ArgumentException))] // #635349, #605936
 		public void NewDelegateClosedOverNullReferenceInstanceMethod ()
 		{
@@ -1144,6 +1146,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void DynamicInvokeOpenInstanceDelegate ()
 		{
 			var d1 = Delegate.CreateDelegate (typeof (Func<DelegateTest, int>), typeof(DelegateTest).GetMethod ("DynamicInvokeOpenInstanceDelegate_CB"));
@@ -1281,6 +1284,7 @@ namespace MonoTests.System
 		}
 #if !MONOTOUCH && !FULL_AOT_RUNTIME
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void CreateDelegateWithLdFtnAndAbstractMethod ()
 		{
 			AssemblyName assemblyName = new AssemblyName ();

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

@@ -262,6 +262,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void GetObjectData ()
 		{
 			string msg = "MESSAGE";
@@ -379,6 +380,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void Source ()
 		{
 			Exception ex1 = new Exception ("MSG");

+ 2 - 1
mcs/class/corlib/Test/System/GCTest.cs

@@ -56,6 +56,7 @@ namespace MonoTests.System {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void ReRegisterForFinalizeTest ()
 		{
 			var thread =  new Thread (Run_ReRegisterForFinalizeTest);
@@ -73,4 +74,4 @@ namespace MonoTests.System {
 			Assert.IsTrue (t.Wait (5000));
 		}
 	}
-}
+}

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

@@ -313,6 +313,7 @@ public class TimeZoneTest {
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void GetUtcOffsetAtDSTBoundary ()
 		{
 			/*

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

@@ -51,6 +51,7 @@ namespace MonoCasTests.System {
 		// when reflection is used (i.e. it gets testable).
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		[ReflectionPermission (SecurityAction.Deny, MemberAccess = true)]
 		[ExpectedException (typeof (SecurityException))]
 		public void MakeTypedReference ()

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

@@ -59,6 +59,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void MakeTypedReference ()
 		{
 			var o = new CClass () { a = new AStruct () { b = "5" }};

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

@@ -52,6 +52,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
+		[Category ("InterpreterNotWorking")]
 		public void TestEquals_Nullable ()
 		{
 			NullableStruct f1 = new NullableStruct { f = 5 };