summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-06 16:31:22 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-06 16:40:42 +0000
commiteafaa2e88f7af16756142a31ab63d032b31395e3 (patch)
tree59d6311f1d8875becdbff3d064adf70ba56d117f /init.cfg
parentd820706d44f25de3f58ad41a7032997089d15385 (diff)
downloadcoreutils-eafaa2e88f7af16756142a31ab63d032b31395e3.tar.xz
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
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg6
1 files changed, 0 insertions, 6 deletions
diff --git a/init.cfg b/init.cfg
index d6c0dcce5..ef450d790 100644
--- a/init.cfg
+++ b/init.cfg
@@ -488,12 +488,6 @@ require_dirent_d_type_()
python < /dev/null \
|| skip_ python missing: assuming no d_type support
- # Manually exclude xfs, since the test would mistakenly report
- # that it has d_type support: d_type == DT_DIR for "." and "..",
- # but DT_UNKNOWN for all other types.
- df -x xfs . > /dev/null 2>&1 \
- || skip_ requires d_type support
-
python "$abs_srcdir"/tests/d_type-check \
|| skip_ requires d_type support
}