Author: kostat
Date: 2007-08-14 11:26:49 -0400 (Tue, 14 Aug 2007)
New Revision: 84084

Modified:
   trunk/mcs/class/System/Test/System.Collections.Generic/QueueTest.cs
   trunk/mcs/class/System/Test/System.Collections.Generic/StackTest.cs
Log:
TARGET_JVM: exclude not working tests

Modified: trunk/mcs/class/System/Test/System.Collections.Generic/QueueTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Collections.Generic/QueueTest.cs 
2007-08-14 15:01:20 UTC (rev 84083)
+++ trunk/mcs/class/System/Test/System.Collections.Generic/QueueTest.cs 
2007-08-14 15:26:49 UTC (rev 84084)
@@ -261,11 +261,7 @@
                        s.Enqueue (2);
                        s.Dequeue ();
 
-#if TARGET_JVM
-                       BinaryFormatter bf = (BinaryFormatter)[EMAIL PROTECTED] 
(false);
-#else
                        BinaryFormatter bf = new BinaryFormatter ();
-#endif // TARGET_JVM
                        MemoryStream ms = new MemoryStream ();
                        bf.Serialize (ms, s);
 
@@ -277,18 +273,16 @@
                }
 
                [Test]
-               [Category ("TargetJvmNotWorking")]
+#if TARGET_JVM
+               [Category ("NotWorking")]
+#endif
                public void DeserializeTest ()
                {
                        MemoryStream ms = new MemoryStream ();
                        ms.Write (_serializedQueue, 0, _serializedQueue.Length);
                        ms.Position = 0;
 
-#if TARGET_JVM
-                       BinaryFormatter bf = (BinaryFormatter)[EMAIL PROTECTED] 
(false);
-#else
                        BinaryFormatter bf = new BinaryFormatter ();
-#endif // TARGET_JVM
                        Queue<int> s = (Queue<int>) bf.Deserialize (ms);
                        Assert.AreEqual (2, s.Count, "#1");
                        Assert.AreEqual (3, s.Dequeue (), "#2");

Modified: trunk/mcs/class/System/Test/System.Collections.Generic/StackTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Collections.Generic/StackTest.cs 
2007-08-14 15:01:20 UTC (rev 84083)
+++ trunk/mcs/class/System/Test/System.Collections.Generic/StackTest.cs 
2007-08-14 15:26:49 UTC (rev 84084)
@@ -259,11 +259,7 @@
                        s.Push (2);
                        s.Pop ();
 
-#if TARGET_JVM
-                       BinaryFormatter bf = (BinaryFormatter)[EMAIL PROTECTED] 
(false);
-#else
                        BinaryFormatter bf = new BinaryFormatter ();
-#endif // TARGET_JVM
                        MemoryStream ms = new MemoryStream ();
                        bf.Serialize (ms, s);
 
@@ -275,18 +271,16 @@
                }
 
                [Test]
-               [Category ("TargetJvmNotWorking")]
+#if TARGET_JVM
+               [Category ("NotWorking")]
+#endif // TARGET_JVM
                public void DeserializeTest ()
                {
                        MemoryStream ms = new MemoryStream ();
                        ms.Write (_serializedStack, 0, _serializedStack.Length);
                        ms.Position = 0;
 
-#if TARGET_JVM
-                       BinaryFormatter bf = (BinaryFormatter)[EMAIL PROTECTED] 
(false);
-#else
                        BinaryFormatter bf = new BinaryFormatter ();
-#endif // TARGET_JVM
                        Stack<int> s = (Stack<int>) bf.Deserialize (ms);
                        Assert.AreEqual (2, s.Count, "#1");
                        Assert.AreEqual (3, s.Pop (), "#2");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to