summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-14 07:56:09 +0000
committerJim Meyering <jim@meyering.net>2003-03-14 07:56:09 +0000
commite4a76f1076b1a791fb322595468916503b7f3a7b (patch)
treecd9b2dd231907332eb14c2d1493927561de27e4e /tests
parentb38d8f4a44ceb291a50dd5d33bd49984e2808d0f (diff)
downloadcoreutils-e4a76f1076b1a791fb322595468916503b7f3a7b.tar.xz
Relax the test for the `local'ness of a file system,
so that now it works also for tmpfs.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/du/slink4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/du/slink b/tests/du/slink
index fd09613d9..7469b9138 100755
--- a/tests/du/slink
+++ b/tests/du/slink
@@ -17,9 +17,9 @@ cd $tmp || framework_failure=1
# Determine if `.' is on a local (would non-NFS be sufficient?) file system.
# On at least some NFS implementations, symlinks never take up space,
-df --local . > tmp
+df --local . | tail -n +2 > tmp
# So if this is a non-local file system, skip the test.
-if grep '^/' tmp > /dev/null; then
+if test -s tmp; then
: # Ok.
else
echo "$0: skipping this test, since \`.' is on a non-local file system" 1>&2