summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-16 11:50:40 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-07-16 12:44:43 +0100
commit73431be6826351c4b3bbd50b61848693e1646749 (patch)
tree7c9e244c62e7a0ee86b09e11a4d66cf1d4bd4541 /tests
parentf96371b21cb6c5d74c58c058e2f6d794389dfa12 (diff)
test suite: Test symlink modification and deletion, not creation
We are going to tolerate symlink creation, because dpkg-source can consume patches to create symlinks (even though it cannot create them). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/unrepresentable10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable
index 621829e..fa71bd3 100755
--- a/tests/tests/unrepresentable
+++ b/tests/tests/unrepresentable
@@ -25,9 +25,13 @@ badly-2 () {
attempt
}
-badly-1 symlink 'not a plain file'
- ln -s TARGET symlink
- git add symlink
+badly-1 orig-symlink 'not a plain file'
+ ln -sf NEWTARGET orig-symlink
+ git add orig-symlink
+badly-2
+
+badly-1 orig-symlink 'not a plain file'
+ git rm -f orig-symlink
badly-2
start