[test] There is no runtime directory on Android
authorMarek Habersack <grendel@twistedcode.net>
Thu, 11 Jun 2015 18:15:50 +0000 (20:15 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:20 +0000 (20:45 +0200)
We return an empty string which is considered to be a valid value in
Android. Adjust the test for that.

mcs/class/corlib/Test/System.Runtime.InteropServices/RuntimeEnvironmentTest.cs

index 28c43e872e8b6be3c89c710e34d348817d0ad84e..660a556c18483017f7403ba25ed57b4aa0ab7a5a 100644 (file)
@@ -74,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]