summaryrefslogtreecommitdiff
path: root/tests/touch
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch')
-rwxr-xr-xtests/touch/dangling-symlink2
-rwxr-xr-xtests/touch/dir-12
-rwxr-xr-xtests/touch/empty-file2
-rwxr-xr-xtests/touch/fail-diag2
-rwxr-xr-xtests/touch/fifo2
-rwxr-xr-xtests/touch/no-create-missing2
-rwxr-xr-xtests/touch/no-rights2
-rwxr-xr-xtests/touch/not-owner2
-rwxr-xr-xtests/touch/now-owned-by-other2
-rwxr-xr-xtests/touch/obsolescent2
-rwxr-xr-xtests/touch/read-only2
-rwxr-xr-xtests/touch/relative2
12 files changed, 12 insertions, 12 deletions
diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink
index 66392a5fc..aedb4afb2 100755
--- a/tests/touch/dangling-symlink
+++ b/tests/touch/dangling-symlink
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
rm -f touch-target t-symlink
ln -s touch-target t-symlink
diff --git a/tests/touch/dir-1 b/tests/touch/dir-1
index e48484a2a..34023072f 100755
--- a/tests/touch/dir-1
+++ b/tests/touch/dir-1
@@ -7,7 +7,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
fail=0
touch . || fail=1
diff --git a/tests/touch/empty-file b/tests/touch/empty-file
index 1020a378d..0f42ba57e 100755
--- a/tests/touch/empty-file
+++ b/tests/touch/empty-file
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
DEFAULT_SLEEP_SECONDS=2
SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag
index 1df8e5494..b8889121b 100755
--- a/tests/touch/fail-diag
+++ b/tests/touch/fail-diag
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
d1=no-$$
diff --git a/tests/touch/fifo b/tests/touch/fifo
index 22cde83a7..9cd2d0171 100755
--- a/tests/touch/fifo
+++ b/tests/touch/fifo
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkfifo_or_skip_ fifo
diff --git a/tests/touch/no-create-missing b/tests/touch/no-create-missing
index a503ff752..be2d0dbf3 100755
--- a/tests/touch/no-create-missing
+++ b/tests/touch/no-create-missing
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
fail=0
diff --git a/tests/touch/no-rights b/tests/touch/no-rights
index 9466166ce..7550bae5e 100755
--- a/tests/touch/no-rights
+++ b/tests/touch/no-rights
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Make sure t2 is newer than t1.
touch -d '2000-01-01 00:00' t1 || framework_failure
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
index f3b294d78..adcdaa87a 100755
--- a/tests/touch/not-owner
+++ b/tests/touch/not-owner
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
if env -- test -w /; then
skip_test_ you have write access to /.
diff --git a/tests/touch/now-owned-by-other b/tests/touch/now-owned-by-other
index 2f85850bb..2c1faefef 100755
--- a/tests/touch/now-owned-by-other
+++ b/tests/touch/now-owned-by-other
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_root_
group_num=$(id -g $NON_ROOT_USERNAME)
diff --git a/tests/touch/obsolescent b/tests/touch/obsolescent
index 25f73828a..8b558777e 100755
--- a/tests/touch/obsolescent
+++ b/tests/touch/obsolescent
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
_POSIX2_VERSION=199209; export _POSIX2_VERSION
POSIXLY_CORRECT=1; export POSIXLY_CORRECT
diff --git a/tests/touch/read-only b/tests/touch/read-only
index 47b7eb20d..e2338c51c 100755
--- a/tests/touch/read-only
+++ b/tests/touch/read-only
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
: > read-only || framework_failure
diff --git a/tests/touch/relative b/tests/touch/relative
index 6a5d100f1..7c1396f15 100755
--- a/tests/touch/relative
+++ b/tests/touch/relative
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure