diff --git a/qse/regress/awk/regress.sh b/qse/regress/awk/regress.sh index 05911f86..a010fe89 100755 --- a/qse/regress/awk/regress.sh +++ b/qse/regress/awk/regress.sh @@ -237,7 +237,7 @@ test) ;; leakcheck) bin_valgrind="`which valgrind 2> /dev/null || echo ""`" - [ -z "${bin_valgrind}" ] && { + [ -n "${bin_valgrind}" -a -f "${bin_valgrind}" ] || { echo_so "valgrind not found. cannot perform this test" exit 1 } diff --git a/qse/regress/sed/regress.sh b/qse/regress/sed/regress.sh index 6d21685c..8c4f57ea 100755 --- a/qse/regress/sed/regress.sh +++ b/qse/regress/sed/regress.sh @@ -117,7 +117,7 @@ test) ;; leakcheck) bin_valgrind="`which valgrind 2> /dev/null || echo ""`" - [ -z "${bin_valgrind}" ] && { + [ -n "${bin_valgrind}" -a -f "${bin_valgrind}" ] || { echo_so "valgrind not found. cannot perform this test" exit 1 }