tests: avoid false failure on 32 bit in readdir() test
commit54c1397510cb08433680b5b7da46a8201770e9ee
authorPádraig Brady <P@draigBrady.com>
Wed, 6 Jul 2016 17:08:32 +0000 (6 18:08 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 6 Jul 2016 17:13:08 +0000 (6 18:13 +0100)
tree3dc152c8a6949e363a162e89a4f7ab08ca2ce1f3
parent383e4b2ce589f6ecf0a375e94ab56fab6eff88f1
tests: avoid false failure on 32 bit in readdir() test

* tests/rm/rm-readdir-fail.sh: Since we use the returned dirent
from the readdir wrapper it must be the correct type and not
just cast.  Therefore setup so that we only have to define a
wrapper for readdir(), which works appropriately on 32 and 64 bit.
Issue reported by Bernhard Voelker, where rm was seen to invoke
rmdir() on invalid file names.
tests/rm/rm-readdir-fail.sh