Author: gert
Date: 2007-12-04 09:37:03 -0500 (Tue, 04 Dec 2007)
New Revision: 90680
Modified:
trunk/gert/interactive/bug345883/MainForm.cs
Log:
Test only applies to Windows.
Modified: trunk/gert/interactive/bug345883/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug345883/MainForm.cs 2007-12-04 14:32:25 UTC
(rev 90679)
+++ trunk/gert/interactive/bug345883/MainForm.cs 2007-12-04 14:37:03 UTC
(rev 90680)
@@ -52,13 +52,31 @@
Application.Run (new MainForm ());
}
+ static bool RunningOnUnix {
+ get {
+ PlatformID platform = Environment.OSVersion.Platform;
+#if NET_2_0
+ return platform == PlatformID.Unix;
+#else
+ return ((int) platform) == 128;
+#endif
+ }
+ }
+
void MainForm_Load (object sender, EventArgs e)
{
+ if (RunningOnUnix) {
+ MessageBox.Show ("This test only applies to Windows.",
+ "bug #345883");
+ Close ();
+ }
+
Array values = Enum.GetValues (typeof (ProcessWindowStyle));
_windowStyleListBox.DataSource = values;
InstructionsForm instructionsForm = new InstructionsForm ();
instructionsForm.Show ();
+
}
void LaunchProcessButton_Click (object sender, EventArgs e)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches