[tests] Fix tests which rely on temp dir location being a real dir
authorMarek Habersack <grendel@twistedcode.net>
Thu, 2 Jul 2015 15:59:06 +0000 (17:59 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:31 +0000 (20:45 +0200)
commit2378ff1a8cfd9c0fa8a32638e1298d6fa49d5fcd
tree77d788d7259a70349a658b3b1d336b3570d9f4d0
parentce550dff611428e42cd73b894bf96890c87f676d
[tests] Fix tests which rely on temp dir location being a real dir

Android M (that's where I ran into it) makes the path returned by
Path.GetTempPath () a symlink to the real directory used for temporary
files. When the tests change the directory the symlink is followed and
subsequent reads of the current directory name will return the real dir
name which doesn't match what was constructed using the value returned by
GetTempPath ()
mcs/class/corlib/Test/System.IO/FileStreamTest.cs