changeset 235:c603041da866 trunk

[svn r251] fixed arguments checking in runtest script
author ChristianK
date Sun, 08 Jun 2008 12:06:22 +0200
parents 9760f54af0b7
children df1abfe27be6
files tests/runtest
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/runtest	Sun Jun 08 08:03:19 2008 +0200
+++ b/tests/runtest	Sun Jun 08 12:06:22 2008 +0200
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # check for command line arguments
-if [ -z $1 ] ; then
+if [ -z "$1" ] ; then
     echo "Usage: `basename $0` <test result file>"
     exit
 fi
@@ -33,7 +33,7 @@
 echo "Running new test and storing result in $TARGETFILE ..."
 echo
 
-if [ -z $DMD ] ; then
+if [ -z "$DMD" ] ; then
 	echo "Testing with llvmdc. Set DMD environment variable to select compiler."
 	DMD="llvmdc -O0"
 else