* [PATCH] Symlink mergetools scriptlets into valgrind wrappers
@ 2011-08-30 0:47 Thomas Rast
2011-08-30 0:50 ` Thomas Rast
2011-08-30 18:16 ` Jeff King
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Rast @ 2011-08-30 0:47 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Jeff King, David Aguilar
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>
---
t/test-lib.sh | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index d7dfc8b..bdd9513 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -950,6 +950,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
--
1.7.7.rc0.370.gdcae57
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Symlink mergetools scriptlets into valgrind wrappers
2011-08-30 0:47 [PATCH] Symlink mergetools scriptlets into valgrind wrappers Thomas Rast
@ 2011-08-30 0:50 ` Thomas Rast
2011-08-30 18:16 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Rast @ 2011-08-30 0:50 UTC (permalink / raw)
To: git
That's it, master is back to valgrind-clean on my box. Thanks for
reading.
--
Thomas Rast
trast@{inf,student}.ethz.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Symlink mergetools scriptlets into valgrind wrappers
2011-08-30 0:47 [PATCH] Symlink mergetools scriptlets into valgrind wrappers Thomas Rast
2011-08-30 0:50 ` Thomas Rast
@ 2011-08-30 18:16 ` Jeff King
1 sibling, 0 replies; 3+ messages in thread
From: Jeff King @ 2011-08-30 18:16 UTC (permalink / raw)
To: Thomas Rast; +Cc: Junio C Hamano, git, David Aguilar
On Tue, Aug 30, 2011 at 02:47:36AM +0200, Thomas Rast wrote:
> 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.
I'm not super-excited about special-casing like this, but I don't think
there's a way to make it much cleaner without a lot of fuss. And the
valgrind stuff is pretty special-cased as it is (it would probably be
cleaner if it were integrated with the bin-wrappers rules in the
Makefile). But it's probably not worth spending effort on it. What's
there works, and your patch is a sane and straightforward fix for this
new issue. So:
Acked-by: Jeff King <peff@peff.net>
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-30 18:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 0:47 [PATCH] Symlink mergetools scriptlets into valgrind wrappers Thomas Rast
2011-08-30 0:50 ` Thomas Rast
2011-08-30 18:16 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).