diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-05-16 05:26:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-16 19:13:55 +0300 |
commit | c205923649568dee9c543d5b7f040d2c660a2272 (patch) | |
tree | f0aca429d2d37d64b08f0b62fe44eedd9e8cf6e2 /t/t4115-apply-symlink.sh | |
parent | 0df2c180904f6b709766f9c24669a9d01543f915 (diff) |
tests: do not negate test_path_exists
As a way to assert the path 'foo' is missing, "! test_path_exists
foo" is a poor way to do so, as the helper is designed to complain
when 'foo' is missing, but the intention of the author who used
negated form was to make sure it does not exist. This does not
help debugging the tests.
Use test_path_is_missing instead, which is a more appropriate helper.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4115-apply-symlink.sh')
-rwxr-xr-x | t/t4115-apply-symlink.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4115-apply-symlink.sh b/t/t4115-apply-symlink.sh index e95e6d4e7d..a22a90d552 100755 --- a/t/t4115-apply-symlink.sh +++ b/t/t4115-apply-symlink.sh @@ -74,7 +74,7 @@ test_expect_success SYMLINKS 'symlink escape when creating new files' ' error: affected file ${SQ}renamed-symlink/create-me${SQ} is beyond a symbolic link EOF test_cmp expected_stderr stderr && - ! test_path_exists .git/create-me + test_path_is_missing .git/create-me ' test_expect_success SYMLINKS 'symlink escape when modifying file' ' |