Mark tests as not working under TARGET_JVM
[mono.git] / mcs / class / corlib / Test / System.Runtime.Remoting.Contexts / SynchronizationAttributeTest.cs
index ba69ed0503ba2cef85676b6de18327fdc590a987..d0b31f1a8a85acff882023b59c82f55ebb3ba638 100644 (file)
@@ -107,7 +107,11 @@ namespace MonoTests.System.Runtime.Remoting.Contexts {
                public void DeserializeKnownValue ()
                {
                        MemoryStream ms = new MemoryStream (serialized_sync_attr);
+#if TARGET_JVM
+                       BinaryFormatter bf = (BinaryFormatter)vmw.@internal.remoting.BinaryFormatterUtils.CreateBinaryFormatter (false);
+#else
                        BinaryFormatter bf = new BinaryFormatter ();
+#endif // TARGET_JVM
                        SynchronizationAttribute sa = (SynchronizationAttribute) bf.Deserialize (ms);
                        Assert.IsTrue (sa.IsReEntrant, "IsReEntrant");
                        Assert.IsFalse (sa.Locked, "Locked");