summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-03-23 18:39:11 +0100
committerJim Meyering <meyering@redhat.com>2012-03-23 18:39:11 +0100
commit488172c499dd8edf84f44cbab3de5d6f75dd722e (patch)
treef93c169960292fd436f8e7206b1b2235ca880e2f /tests
parent4b101ccd176eb3951bfbab717a0a3b5e2c4d19ef (diff)
downloadcoreutils-488172c499dd8edf84f44cbab3de5d6f75dd722e.tar.xz
tests: skip ls/stat-free-color on XFS, rather than always failing
* tests/init.cfg (require_dirent_d_type_): Manually skip when "." is an xfs file system.
Diffstat (limited to 'tests')
-rw-r--r--tests/init.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index fda82bc02..17713d924 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -362,6 +362,12 @@ 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/d_type-check \
|| skip_ requires d_type support
}