summaryrefslogtreecommitdiff
path: root/tests/ls/stat-dtype
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ls/stat-dtype')
-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 &&
{