From 33176a7269eacf3ff60512f7ce3840dd7161ea73 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 24 Feb 2007 08:20:37 +0100 Subject: [PATCH] * tests/du/slink: Skip the test if executing on an nfsv3 file system. This avoids a test failure at least on OSF/1 4.0d. --- ChangeLog | 5 +++++ tests/du/slink | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index df1ccce0e..f22aae665 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-23 Bruno Haible + + * tests/du/slink: Skip the test if executing on an nfsv3 file system. + This avoids a test failure at least on OSF/1 4.0d. + 2007-02-23 Jim Meyering * src/date.c (usage): Split a diagnostic that had grown to be diff --git a/tests/du/slink b/tests/du/slink index d3d948ee9..21679345d 100755 --- a/tests/du/slink +++ b/tests/du/slink @@ -51,6 +51,14 @@ if test -s tmp; then (exit 77); exit 77 fi +df --type=nfsv3 . | tail -n +2 > tmp +if test -s tmp; then + # At least on OSF/1 4.0d, when using an nfsv3 file system, + # each created symlink can end up having a size of 0. + echo "$0: skipping this test, since \`.' is on an NFS file system" 1>&2 + (exit 77); exit 77 +fi + if test $framework_failure = 1; then echo "$0: failure in testing framework" 1>&2 (exit 1); exit 1 -- 2.34.1