summaryrefslogtreecommitdiff
path: root/tests/ls
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-24 07:27:00 +0000
committerJim Meyering <jim@meyering.net>2006-09-24 07:27:00 +0000
commitb4963a7f707de1556dbbc92cd3f0d7ca58f31a1a (patch)
tree7968a56014e36287d96e4908e1708f1aef50ea75 /tests/ls
parent453c2150035151cf0f34737f733c45de17244e4c (diff)
downloadcoreutils-b4963a7f707de1556dbbc92cd3f0d7ca58f31a1a.tar.xz
* tests/ls/stat-dtype: Don't use tmpfs on linux-2.4 or older,
since that predated addition of d_type support.
Diffstat (limited to 'tests/ls')
-rwxr-xr-xtests/ls/stat-dtype13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/ls/stat-dtype b/tests/ls/stat-dtype
index dad455215..153195cd3 100755
--- a/tests/ls/stat-dtype
+++ b/tests/ls/stat-dtype
@@ -37,7 +37,18 @@ fi
# Also, tmpfs on Solaris 10 lacks d_type support.
skip=yes
fs_type=`stat -f --printf %T .`
-test `uname -s` = Linux && test $fs_type = tmpfs && skip=no
+
+linux_2_6_or_newer=0
+case `uname -r` in
+ [01].*) ;;
+ 2.[0-5]*) ;;
+ *) linux_2_6_or_newer=1 ;;
+esac
+
+test `uname -s` = Linux \
+ && test $linux_2_6_or_newer = 1 \
+ && test $fs_type = tmpfs \
+ && skip=no
test $fs_type = ext2/ext3 && skip=no
test $skip = yes &&
{