test: expose recent gnulib canonicalize bugmaster
commita84286ce7a2e7722eb38280bcbca7fabc647be95
authorEric Blake <eblake@redhat.com>
Mon, 6 Feb 2012 23:27:48 +0000 (6 16:27 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 14 Mar 2012 15:23:40 +0000 (14 09:23 -0600)
tree0714fd48416ef1f1a241dadad62b2983f0a7d911
parent0dd13c463d87bad8cfd95922740484fcce0e34ea
test: expose recent gnulib canonicalize bug

https://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00038.html
detailed a couple of bugs in gnulib's canonicalize that were visible
through coreutils' readlink, but only on systems where // is distinct
from /.  This particular test assumes the POSIX fix which requires
canonicalization of a symlink containing just slashes to behave as
if slashes separating the symlink from the rest of the name are
elided (see http://austingroupbugs.net/view.php?id=541), as that is
the only useful (and current) behavior on Cygwin.  That is,

ln -s / root
ls root/dev

must list the contents of /dev, not //dev.

* tests/misc/readlink-root: New test.
* tests/Makefile.am (TESTS): Run it.
tests/Makefile.am
tests/misc/readlink-root [new file with mode: 0755]