Author: marek
Date: 2007-11-09 11:46:04 -0500 (Fri, 09 Nov 2007)
New Revision: 89326
Removed:
trunk/mcs/tests/test-50.cs
trunk/mcs/tests/test-67.cs
Modified:
trunk/mcs/tests/known-issues-gmcs
trunk/mcs/tests/known-issues-mcs
Log:
Removed windows only tests.
Modified: trunk/mcs/tests/known-issues-gmcs
===================================================================
--- trunk/mcs/tests/known-issues-gmcs 2007-11-09 16:09:06 UTC (rev 89325)
+++ trunk/mcs/tests/known-issues-gmcs 2007-11-09 16:46:04 UTC (rev 89326)
@@ -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
Modified: trunk/mcs/tests/known-issues-mcs
===================================================================
--- trunk/mcs/tests/known-issues-mcs 2007-11-09 16:09:06 UTC (rev 89325)
+++ trunk/mcs/tests/known-issues-mcs 2007-11-09 16:46:04 UTC (rev 89326)
@@ -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
Deleted: trunk/mcs/tests/test-50.cs
===================================================================
--- trunk/mcs/tests/test-50.cs 2007-11-09 16:09:06 UTC (rev 89325)
+++ trunk/mcs/tests/test-50.cs 2007-11-09 16:46:04 UTC (rev 89326)
@@ -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;
- }
-}
Deleted: trunk/mcs/tests/test-67.cs
===================================================================
--- trunk/mcs/tests/test-67.cs 2007-11-09 16:09:06 UTC (rev 89325)
+++ trunk/mcs/tests/test-67.cs 2007-11-09 16:46:04 UTC (rev 89326)
@@ -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;
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches