diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-05-16 04:26:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-16 18:14:23 +0200 |
commit | b126b65b3381cd8659552b39699b3b3d9a4f5393 (patch) | |
tree | 2f36757bff91eb3262b5e017dcdf12588cfa810c /http.c | |
parent | t2021: do not negate test_path_is_dir (diff) | |
download | git-b126b65b3381cd8659552b39699b3b3d9a4f5393.tar.xz git-b126b65b3381cd8659552b39699b3b3d9a4f5393.zip |
test: do not negate test_path_is_* to assert absense
These tests use "! test_path_is_dir" or "! test_path_is_file" to
ensure that the path is not recursively checked out or "submodule
update" did not touch the working tree.
Use "test_path_is_missing" to assert that the path does not exist,
instead of negating test_path_is_* helpers; they are designed to be
loud in wrong occasions. Besides, negating "test_path_is_dir" would
mean we would be happy if a file exists there, which is not the case
for these tests.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
0 files changed, 0 insertions, 0 deletions