diff options
| author | Matteo Bagnolini <matteobagnolini2003@gmail.com> | 2025-01-03 14:00:35 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-03 10:35:13 -0800 |
| commit | 866ea877036ce581e0d3c130f527631cd8b36bdf (patch) | |
| tree | 35e1471aab74c655dfdcd4ce51d0ce6f285d3581 /t/unit-tests/u-oid-array.c | |
| parent | 1b4e9a5f8b5f048972c21fe8acafe0404096f694 (diff) | |
t7110: replace `test -f` with `test_path_is_*` helpers
`test -f` and `! test -f` do not provide clear error messages when they fail.
To enhance debuggability, use `test_path_is_file` and `test_path_is_missing`,
which instead provide more informative error messages.
Note that `! test -f` checks if a path is not a file, while
`test_path_is_missing` verifies that a path does not exist. In this specific
case the tests are meant to check the absence of the path, making
`test_path_is_missing` a valid replacement.
Signed-off-by: Matteo Bagnolini <matteobagnolini2003@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/u-oid-array.c')
0 files changed, 0 insertions, 0 deletions
