changeset 198:e21cc48ddf4d

Make using AUDIODB='valgrind ../../audioDB' work without complaints.
author mas01cr
date Fri, 23 Nov 2007 14:05:47 +0000
parents 8c81cacf5aab
children 72a037f2b1e4
files tests/test-utils.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-utils.sh	Fri Nov 23 11:08:15 2007 +0000
+++ b/tests/test-utils.sh	Fri Nov 23 14:05:47 2007 +0000
@@ -4,7 +4,7 @@
 
 trap "exit 1" ERR
 
-if [ -z ${AUDIODB} ]; then
+if [ -z "${AUDIODB}" ]; then
   AUDIODB=../../audioDB
 fi
 
@@ -63,7 +63,7 @@
 }
 
 stop_server() {
-  grep ${AUDIODB} /proc/$1/cmdline > /dev/null
+  grep "${AUDIODB}" /proc/$1/cmdline > /dev/null
   kill $1
   # HACK: deal with race on process exit
   sleep 1
@@ -71,7 +71,7 @@
 }
 
 check_server() {
-  grep ${AUDIODB} /proc/$1/cmdline > /dev/null
+  grep "${AUDIODB}" /proc/$1/cmdline > /dev/null
 }
 
 expect_client_failure() {