tests: cover more realpath scenarios
authorEric Blake <eblake@redhat.com>
Wed, 14 Mar 2012 03:51:47 +0000 (21:51 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 15 Mar 2012 16:28:42 +0000 (10:28 -0600)
commit61167bae9f27269724dc577a19d2bd48a437bafb
treeec0f335c7c8a2cfd4ee844c436075bec6779c235
parent5e264bf248128735aaba4e368f3875680d2ca438
tests: cover more realpath scenarios

'realpath --relative-base --relative-to' is identical to
--relative-base=--relative-to, so the test wasn't covering what
it claimed.  Expose recent fixes for handling of // on systems
where // is distinct, and for --relative-base=/.  Add test that
exposes our design decision that --relative-base that is not a
prefix of --relative-to is a no-op (if we later change behavior,
we will also have to change that part of the test).

* tests/misc/realpath: Fix typo. Add some tests.
tests/misc/realpath