tests: fix dirent d_type support verification
commiteafaa2e88f7af16756142a31ab63d032b31395e3
authorPádraig Brady <P@draigBrady.com>
Fri, 6 Nov 2015 16:31:22 +0000 (6 16:31 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 6 Nov 2015 16:40:42 +0000 (6 16:40 +0000)
tree59d6311f1d8875becdbff3d064adf70ba56d117f
parentd820706d44f25de3f58ad41a7032997089d15385
tests: fix dirent d_type support verification

* init.cfg (require_dirent_d_type_): Don't use df -x
to exclude XFS, since this depends on a correct mtab
which is brittle and often not correct within chroots.
* tests/d_type-check: Check also the d_type of files,
which excludes XFS appropriately.  Specify all argument
and return types to avoid truncated pointers being passed,
which skipped the test due to crashes on x86_64 at least.
Simplify the C library lookup by reusing the interpreter's.

chroot issue reported at https://bugzilla.redhat.com/1263341
init.cfg
tests/d_type-check