summaryrefslogtreecommitdiff
path: root/tests/symlinks
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-02-20 11:33:51 +0100
committerJim Meyering <meyering@redhat.com>2011-03-26 14:20:28 +0100
commit2876ed918f00810f399dcb626df61feea389bfac (patch)
tree1dcb5f6dcf3e2e5a0c377976ed5087ec73e81d52 /tests/symlinks
parent02e3376350b5ddf29ba1e697ec8b71cf5a9f8344 (diff)
downloadpatch-2876ed918f00810f399dcb626df61feea389bfac.tar.gz
maint: avoid non-portable use of test -a
With these changes, "make sc_prohibit_test_minus_ao" almost passes. Uses of "test -o" remain. Note: unchecked uses of test -ot/-nt also remain. * tests/empty-files: Use "test C1 && test C2", not "test C1 -a C2" * tests/merge: Likewise. * tests/symlinks: Likewise. * tests/test-lib.sh: Likewise.
Diffstat (limited to 'tests/symlinks')
-rw-r--r--tests/symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/symlinks b/tests/symlinks
index f7dea76..3b7f0e2 100644
--- a/tests/symlinks
+++ b/tests/symlinks
@@ -147,7 +147,7 @@ check 'patch -p1 --backup < create-symlink.diff || echo "Status: $?"' <<EOF
patching symbolic link symlink
EOF
-ncheck 'test -f symlink.orig -a ! -s symlink.orig'
+ncheck 'test -f symlink.orig && test ! -s symlink.orig'
# The backup file of a modified symlink is the old symlink.