Removed windows only tests.
authorMarek Safar <marek.safar@gmail.com>
Fri, 9 Nov 2007 16:46:04 +0000 (16:46 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 9 Nov 2007 16:46:04 +0000 (16:46 -0000)
svn path=/trunk/mcs/; revision=89326

mcs/tests/known-issues-gmcs
mcs/tests/known-issues-mcs
mcs/tests/test-50.cs [deleted file]
mcs/tests/test-67.cs [deleted file]

index 5a79109dfd2f4fc15ab8bd4c416de51149ae1979..8eb335a679de0c6e4852edcf55ae35a14529266d 100644 (file)
@@ -4,8 +4,6 @@
 # csXXXX.cs            : test case causes error
 # csXXXX.cs IGNORE     : adds test to ignore list
 
-test-50.cs IGNORE      # Windows-only test
-test-67.cs IGNORE      # Windows-only test
 test-xml-027.cs
 test-539.cs IGNORE     # In 2.0 profile, RuntimeCompatilityAttribute is added by default with WrapNonExceptionThrows set to true and conditional compilation symbols are not provided yet.
 test-562.cs
index 0aa3e5945507b777a99eb1e2d4524fdec4f9e3c3..78412baba17666f147e3d9d153b2ad9d2df11257 100644 (file)
@@ -4,9 +4,6 @@
 # csXXXX.cs            : test case causes error
 # csXXXX.cs IGNORE     : adds test to ignore list
 
-test-50.cs IGNORE      # Windows-only tests
-test-67.cs IGNORE      # Windows-only test
-
 test-xml-027.cs
 test-562.cs
 test-587.cs
diff --git a/mcs/tests/test-50.cs b/mcs/tests/test-50.cs
deleted file mode 100644 (file)
index a05a554..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-
-public class Blah {
-
-       [DllImport ("user32", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Auto)]
-       public static extern int MessageBox (int hWnd, string pText, string pCaption, int uType);
-
-       public static int Main ()
-       {
-               MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);
-
-               return 0;
-       }
-}
diff --git a/mcs/tests/test-67.cs b/mcs/tests/test-67.cs
deleted file mode 100644 (file)
index 7eb792a..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-
-[StructLayout (LayoutKind.Sequential)]
-public class MySystemTime {
-       public ushort Year; 
-       public ushort Month;
-       public ushort DayOfWeek; 
-       public ushort Day; 
-       public ushort Hour; 
-       public ushort Minute; 
-       public ushort Second; 
-       public ushort Milliseconds; 
-}
-
-[StructLayout (LayoutKind.Sequential)]
-public struct Point {
-       public int x;
-       public int y;
-}
-
-[StructLayout (LayoutKind.Explicit)]
-public struct Rect {   
-       [FieldOffset (0)] public int left;
-       [FieldOffset (4)] public int top;
-       [FieldOffset (8)] public int right;
-       [FieldOffset (12)] public int bottom;
-}
-
-[StructLayout (LayoutKind.Explicit)]
-struct A {
-       [FieldOffset (0)]
-       public int a;
-       [FieldOffset (0)]
-       public byte b1;
-       [FieldOffset (1)]
-       public byte b2;
-       [FieldOffset (2)]
-       public byte b3;
-       [FieldOffset (3)]
-       public byte b4;
-}
-
-public class Blah {
-
-       [DllImport ("Kernel32.dll")]
-       public static extern void GetSystemTime (MySystemTime st);
-
-       [DllImport ("User32.dll")]
-       public static extern bool PtInRect (ref Rect r, Point p);       
-
-       public static int Main () {
-
-               MySystemTime st = new MySystemTime ();
-
-               GetSystemTime (st);
-
-               Console.WriteLine ("Today's date is : {0:0000}-{1:00}-{2:00}", st.Year, st.Month, st.Day);
-               Console.WriteLine ("The time now is : {0:00}:{1:00}:{2:00}", st.Hour, st.Minute, st.Second);
-
-               Rect r = new Rect ();
-
-               r.left = 10;
-               r.top  = 12;
-               r.right = 30;
-               r.bottom = 30;
-
-               Point p = new Point ();
-
-               p.x = 15;
-               p.y = 20;
-
-               if (!PtInRect (ref r, p))
-                       return 1;
-
-               A a = new A ();
-
-               a.a = 0x12345678;
-
-               if (a.b1 != 0x78)
-                       return 2;
-               if (a.b2 != 0x56)
-                       return 3;
-               if (a.b3 != 0x34)
-                       return 4;
-               if (a.b4 != 0x12)
-                       return 5;
-               
-               Console.WriteLine ("Point lies inside rect");
-               Console.WriteLine ("Test passes");
-               return 0;
-       }
-}