tests: explicitly use `test-tool.exe` on Windows
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 21 Jan 2019 15:12:19 +0000 (07:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jan 2019 20:35:59 +0000 (12:35 -0800)
In 8abfdf44c882 (tests: explicitly use `git.exe` on Windows,
2018-11-14), we made sure to use the `.exe` file extension when
using an absolute path to `git.exe`, to avoid getting confused with a
file or directory in the same place that lacks said file extension.

For the same reason, we need to handle test-tool.exe the same way.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh
index e12addc32460e7177afed307289f712200b2d0c2..6bc0aa57b122bec185830af8767fbb67ac0f5139 100644 (file)
@@ -1007,7 +1007,7 @@ test -d "$GIT_BUILD_DIR"/templates/blt || {
        error "You haven't built things yet, have you?"
 }
 
-if ! test -x "$GIT_BUILD_DIR"/t/helper/test-tool
+if ! test -x "$GIT_BUILD_DIR"/t/helper/test-tool$X
 then
        echo >&2 'You need to build test-tool:'
        echo >&2 'Run "make t/helper/test-tool" in the source (toplevel) directory'