Skip to content

Commit 1c002d0

Browse files
rscharfegitster
authored andcommitted
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>
1 parent c9d4999 commit 1c002d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

t/perf/p0004-lazy-init-name-hash.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ test_perf_large_repo
77
test_checkout_worktree
88

99
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 &&
1212
test_cmp out.single out.multi
1313
'
1414

1515
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
1717
'
1818

1919
test_done

0 commit comments

Comments
 (0)