summaryrefslogtreecommitdiff
path: root/tests/touch
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch')
-rwxr-xr-xtests/touch/dangling-symlink10
-rwxr-xr-xtests/touch/fifo5
-rwxr-xr-xtests/touch/not-owner6
3 files changed, 7 insertions, 14 deletions
diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink
index 908f30a8a..3c5cbdcec 100755
--- a/tests/touch/dangling-symlink
+++ b/tests/touch/dangling-symlink
@@ -39,14 +39,12 @@ if test $fail = 1; then
*linux-gnu*)
case "`uname -r`" in
2.3.9[0-9]*)
- cat 1>&2 <<EOF
-====================================================
-$0: WARNING!!!
+ skip_test_ \
+'****************************************************
+WARNING!!!
This version of the Linux kernel causes touch to fail
when operating on dangling symlinks.
-====================================================
-EOF
- exit 77
+****************************************************'
;;
esac
;;
diff --git a/tests/touch/fifo b/tests/touch/fifo
index 796d330d9..400c922c8 100755
--- a/tests/touch/fifo
+++ b/tests/touch/fifo
@@ -28,10 +28,7 @@ if ! mkfifo fifo; then
# failure as a test failure. However, in this case, when running on a SunOS
# system using a disk NFS mounted from OpenBSD, the above fails like this:
# mkfifo: cannot make fifo `fifo-10558': Not owner
- echo '********************************************'
- echo 'NOTICE: unable to create test prerequisites'
- echo '********************************************'
- exit 77
+ skip_test_ 'NOTICE: unable to create test prerequisites'
fi
fail=0
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
index 9abb36ba1..4024e0351 100755
--- a/tests/touch/not-owner
+++ b/tests/touch/not-owner
@@ -26,13 +26,11 @@ fi
test=../../src/test
if $test -w /; then
- echo Skipping because you have write access to /.
- (exit 77); exit 77
+ skip_test_ you have write access to /.
fi
if $test -O / || $test -G /; then
- echo Skipping because you own /.
- (exit 77); exit 77
+ skip_test_ "you own /."
fi
. $srcdir/../test-lib.sh