diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-09-08 00:06:36 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-09-08 00:07:10 +0100 |
commit | 7f77fa1ada1fd09c3de3c0e26ff683201c007cba (patch) | |
tree | 220c74daa392cb5273d1b1ad9f263c2b2e101395 | |
parent | b192dfff6db6d91728397d9544a9553051cfe5de (diff) |
tests: Test creation of new symlink is treated as unrepresentable
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | tests/tests/unrepresentable | 12 |
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 |