From 6faaf59b8b977c263ab534c5b33ac4768d68b565 Mon Sep 17 00:00:00 2001 From: Muhammed Dilshad A Date: Tue, 6 Oct 2026 15:44:58 +0530 Subject: [PATCH] t0450: use test_path_is_file and test_path_is_missing Replace raw 'test -f' and '! test -f' assertions with the test helper functions 'test_path_is_file' and 'test_path_is_missing' to provide diagnostic output when an assertion fails. Signed-off-by: Muhammed Dilshad A Signed-off-by: Junio C Hamano --- t/t0450-txt-doc-vs-help.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t0450-txt-doc-vs-help.sh b/t/t0450-txt-doc-vs-help.sh index 55c0fb3cb7..a2da2b0192 100755 --- a/t/t0450-txt-doc-vs-help.sh +++ b/t/t0450-txt-doc-vs-help.sh @@ -116,13 +116,13 @@ do if grep -q "^$builtin$" "$TEST_DIRECTORY"/t0450/adoc-missing then test_expect_success "$builtin appropriately marked as not having .adoc" ' - ! test -f "$adoc" + test_path_is_missing "$adoc" ' else test_set_prereq "$preq" test_expect_success "$builtin appropriately marked as having .adoc" ' - test -f "$adoc" + test_path_is_file "$adoc" ' fi