summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-05-03 11:06:35 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-05-03 11:06:35 +0200
commit0e952c6d344223b3bdd988f1978137fbcc450ef6 (patch)
treed9e83b6b8a268f1636039231844f046e3fe99f23
parent0403787317c65d1d4f4630a10d7b0544fa643529 (diff)
downloadpatch-0e952c6d344223b3bdd988f1978137fbcc450ef6.tar.gz
Improve the symlink backup file tests
* tests/symlinks: Improve the backup file tests.
-rw-r--r--ChangeLog4
-rw-r--r--tests/symlinks4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ba7bd02..44cec25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-05-02 Andreas Gruenbacher <agruen@suse.de>
+ * tests/symlinks: Improve the backup file tests.
+
+2009-05-02 Andreas Gruenbacher <agruen@suse.de>
+
* src/Makefile.am (patch_LDADD): Add $(LIB_CLOCK_GETTIME) here, after
libpatch.a, so that clock_gettime is properly resolved on systems on
which the library order matters.
diff --git a/tests/symlinks b/tests/symlinks
index 6665028..1635517 100644
--- a/tests/symlinks
+++ b/tests/symlinks
@@ -137,7 +137,7 @@ check 'patch -p1 < delete-symlink.diff || echo "Status: $?"' <<EOF
patching symbolic link symlink
EOF
-ncheck 'test ! -e symlink'
+ncheck 'test ! -L symlink'
# --------------------------------------------------------------
@@ -147,7 +147,7 @@ check 'patch -p1 --backup < create-symlink.diff || echo "Status: $?"' <<EOF
patching symbolic link symlink
EOF
-ncheck 'test ! \( -L symlink.orig -o -s symlink.orig \)'
+ncheck 'test -f symlink.orig -a ! -s symlink.orig'
# The backup file of a modified symlink is the old symlink.