p0004: simplify calls of test-lazy-init-name-hash

The test library puts helpers into $PATH, so we can simply call them without specifying their location. The suffix $X is also not necessary because .exe files on Windows can be started without specifying their extension, and on other platforms it's empty anyway. Signed-off-by: Rene Scharfe <l.s.r@web.de> Acked-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed May 13, 2017 at 17:59 UTC 1c002d0a9eb52f8e9cbecb8dce4edd86062df3b5
1 file changed +3 -3
t/perf/p0004-lazy-init-name-hash.sh
+3 -3
@@ -7,13 +7,13 @@ test_perf_large_repo
7 test_checkout_worktree
8
9 test_expect_success 'verify both methods build the same hashmaps' '
10 - $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --dump --single | sort >out.single &&
11 - $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --dump --multi | sort >out.multi &&
10 + test-lazy-init-name-hash --dump --single | sort >out.single &&
11 + test-lazy-init-name-hash --dump --multi | sort >out.multi &&
12 test_cmp out.single out.multi
13 '
14
15 test_expect_success 'multithreaded should be faster' '
16 - $GIT_BUILD_DIR/t/helper/test-lazy-init-name-hash$X --perf >out.perf
16 + test-lazy-init-name-hash --perf >out.perf
17 '
18
19 test_done