[tests] Fix path used by the test so that it works on Android 4.4.4
authorMarek Habersack <grendel@twistedcode.net>
Tue, 21 Jul 2015 22:12:24 +0000 (00:12 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 21 Jul 2015 22:15:48 +0000 (00:15 +0200)
mcs/class/Mono.Posix/Test/Mono.Unix/StdioFileStreamTest.cs

index 23e26ea05cb91847b072a734cb21a369b52829f8..aaae08271ed602f6f7d2db79f171aafc98a013bb 100644 (file)
@@ -857,7 +857,8 @@ namespace MonoTests.System.IO
                [ExpectedException (typeof (NotSupportedException))]
                public void SetLengthWithClosedBaseStream ()
                {
-                       StdioFileStream fs = new StdioFileStream ("temp", FileMode.Create);
+                       string path = TempFolder + Path.DirectorySeparatorChar + "temp";
+                       StdioFileStream fs = new StdioFileStream (path, FileMode.Create);
                        BufferedStream bs = new BufferedStream (fs);
                        fs.Close ();