summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/unrepresentable12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable
index e4b0da8..fcff784 100755
--- a/tests/tests/unrepresentable
+++ b/tests/tests/unrepresentable
@@ -24,11 +24,14 @@ badly-1 () {
start
}
-badly-2 () {
+badly-2-raw () {
git commit -m "Commit wrongness $wrongfn ($wrongmsg)"
- t-expect-fail E:"cannot represent change: $wrongmsg .*: $wrongfn" \
+ t-expect-fail "$1" \
attempt
}
+badly-2 () {
+ badly-2-raw E:"cannot represent change: $wrongmsg .*: $wrongfn"
+}
badly-1 orig-symlink 'modified symlink'
ln -sf NEWTARGET orig-symlink
@@ -39,6 +42,11 @@ badly-1 orig-symlink 'deletion of symlink'
git rm -f orig-symlink
badly-2
+badly-1
+ ln -s hi new
+ git add new
+badly-2-raw 'new version is symlink'
+
start
git rm src.c
git commit -m deleted