diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-11-29 13:28:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-29 13:28:00 -0800 |
commit | 91207f378460d91c2097e1135ac69fd73f797ff8 (patch) | |
tree | 73b093d8ee0a6da9a618d3c98e37c908ff02f4aa /t/test-lib.sh | |
parent | Merge branch 'sc/fmt-merge-msg-doc-markup-fix' into maint (diff) | |
parent | valgrind: support test helpers (diff) | |
download | tgif-91207f378460d91c2097e1135ac69fd73f797ff8.tar.xz |
Merge branch 'nd/test-helpers' into maint
Update to the test framework made in 2.9 timeframe broke running
the tests under valgrind, which has been fixed.
* nd/test-helpers:
valgrind: support test helpers
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 21e4aa2e54..b021329e03 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -809,7 +809,14 @@ then return; base=$(basename "$1") - symlink_target=$GIT_BUILD_DIR/$base + case "$base" in + test-*) + symlink_target="$GIT_BUILD_DIR/t/helper/$base" + ;; + *) + symlink_target="$GIT_BUILD_DIR/$base" + ;; + esac # do not override scripts if test -x "$symlink_target" && test ! -d "$symlink_target" && |