Merge branch 'jc/test-say-color-avoid-echo-escape'
[gitweb.git] / t / test-lib.sh
index bfc223815cff486866caac3118052c7ac432ca76..489bc80fc1b1ba4066a1fd5ad6d2024d67160ba7 100644 (file)
@@ -105,7 +105,7 @@ export EDITOR
 # Add libc MALLOC and MALLOC_PERTURB test
 # only if we are not executing the test with valgrind
 if expr " $GIT_TEST_OPTS " : ".* --valgrind " >/dev/null ||
-   test -n "TEST_NO_MALLOC_"
+   test -n "$TEST_NO_MALLOC_CHECK"
 then
        setup_malloc_check () {
                : nothing
@@ -230,7 +230,7 @@ else
        say_color() {
                test -z "$1" && test -n "$quiet" && return
                shift
-               echo "$*"
+               printf "%s\n" "$*"
        }
 fi