[test] There is no runtime directory on Android
[mono.git] / mcs / class / corlib / Test / System.Runtime.InteropServices / RuntimeEnvironmentTest.cs
index 3c7f7af5bc870aa0d0a6b64b594c77948f701405..660a556c18483017f7403ba25ed57b4aa0ab7a5a 100644 (file)
@@ -41,6 +41,7 @@ namespace MonoTests.System.Runtime.InteropServices {
        public class RuntimeEnvironmentTest {
 
                [Test]
+               [Category ("MobileNotWorking")]
                public void SystemConfigurationFile ()
                {
                        string fname = RuntimeEnvironment.SystemConfigurationFile;
@@ -73,7 +74,11 @@ namespace MonoTests.System.Runtime.InteropServices {
                {
                        string dirname = RuntimeEnvironment.GetRuntimeDirectory ();
                        Assert.IsNotNull (dirname, "GetRuntimeDirectory");
+#if MONODROID
+                       Assert.IsTrue (dirname.Length == 0, "directory name empty");
+#else
                        Assert.IsTrue (Directory.Exists (dirname), "Exists");
+#endif
                }
 
                [Test]