Browse Source

[trac614] Make tests_in_valgrind more portable

JINMEI Tatuya 14 years ago
parent
commit
3d69f66a68
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/tests_in_valgrind.sh

+ 2 - 2
tools/tests_in_valgrind.sh

@@ -39,7 +39,7 @@ FAILED=
 
 # Find all the tests (yes, doing it by a name is a nasty hack)
 # Since the while runs in a subprocess, we need to get the assignments out, done by the eval
-eval $(find . -type f -executable -name run_unittests -print | grep -v '\.libs/run_unittests$' | while read testname ; do
+eval $(find . -type f -name run_unittests -print | grep -v '\.libs/run_unittests$' | while read testname ; do
     sed -e 's#exec "#exec valgrind '"$FLAGS"' "#' "$testname" > "$testname.valgrind"
     chmod +x "$testname.valgrind"
     echo "$testname" >>"$LOGFILE"
@@ -64,7 +64,7 @@ eval $(find . -type f -executable -name run_unittests -print | grep -v '\.libs/r
     echo 'FOUND_ANY=true'
 done)
 
-if [ -n "$FAILED" ] ; then
+if test -n "$FAILED"; then
     echo "These tests failed:" >&2
     echo "$FAILED" >&2
 fi