[tests] Fix for when CWD is /
authorMarek Habersack <grendel@twistedcode.net>
Thu, 11 Jun 2015 18:02:03 +0000 (20:02 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:16 +0000 (20:45 +0200)
commitb28f08e67f625f6382ce633e1c863cded1a18500
treec67658540457c532d0d43779c8f389ce9dfe10c3
parent3b0acf8d40afc98e05130a9a8787f2ea77dbefce
[tests] Fix for when CWD is /

The test case doesn't account for the situation when the tests are ran
at the root of the Unix filesystem. This is, admittedly, a rare case on
Desktop but it's precisely what CWD is for Android processes. The test
would fail because it would get a path of the //Form instead of the /Form
mcs/class/corlib/Test/System.IO/PathTest.cs