]> Pileus Git - ~andy/git/commitdiff
Symlink mergetools scriptlets into valgrind wrappers
authorThomas Rast <trast@student.ethz.ch>
Tue, 30 Aug 2011 00:47:36 +0000 (02:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2011 19:27:01 +0000 (12:27 -0700)
Since bc7a96a (mergetool--lib: Refactor tools into separate files,
2011-08-18) the mergetools and difftools related tests fail under
--valgrind because the mergetools/* scriptlets are not in the exec
path.

For now, symlink the mergetools subdir into the t/valgrind/bin
directory as a whole, since it does not contain anything of interest
to the valgrind wrappers.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index e27422217db28f0c6693deb0d9c093ba89a72dda..c210c17c2979565b66380f39f8b38fd9fa848a69 100644 (file)
@@ -932,6 +932,8 @@ then
        do
                make_valgrind_symlink $file
        done
+       # special-case the mergetools loadables
+       make_symlink "$GIT_BUILD_DIR"/mergetools "$GIT_VALGRIND/bin/mergetools"
        OLDIFS=$IFS
        IFS=:
        for path in $PATH