Code

gettext tests: locate i18n lib&data correctly under --valgrind
authorThomas Rast <trast@student.ethz.ch>
Sun, 25 Jul 2010 14:55:46 +0000 (16:55 +0200)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:10:05 +0000 (07:10 +0000)
commit3f4c2c0d435a4d61beed1fb0065a23cc093a4e20
treea697c6987e3b1d9a4184a4977859e85414701f8c
parent44405738a05267a479f01f3b29a0a3b33cb15053
gettext tests: locate i18n lib&data correctly under --valgrind

The new t020[01] for gettext support did not find git-sh-i18n and the
translation data when run under --valgrind: lib-gettext.sh tried to
locate them under $GIT_EXEC_PATH, which normally is the git build
directory, but is changed by --valgrind to point to the wrappers.

Introduce a new variable $GIT_BUILD_DIR which can be used to locate
data that resides under the build directory, and use that instead.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
t/lib-gettext.sh