summaryrefslogtreecommitdiff
path: root/test/scalatest
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-11-02 15:20:38 +0000
committermichelou <michelou@epfl.ch>2007-11-02 15:20:38 +0000
commit42b43e8b3884edf42bf07a24c711854a8a6bcee9 (patch)
treea54b84125ae5b61fda80101f348fb3e30a805917 /test/scalatest
parentb9d874ba4ea8952f852810abd57d6742d53030ce (diff)
downloadscala-42b43e8b3884edf42bf07a24c711854a8a6bcee9.tar.gz
scala-42b43e8b3884edf42bf07a24c711854a8a6bcee9.tar.bz2
scala-42b43e8b3884edf42bf07a24c711854a8a6bcee9.zip
added basic support for runtime types
Diffstat (limited to 'test/scalatest')
-rwxr-xr-xtest/scalatest3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scalatest b/test/scalatest
index a340e49b88..4f52724acf 100755
--- a/test/scalatest
+++ b/test/scalatest
@@ -743,7 +743,8 @@ else
SCALAC_CMD="${BIN_DIR}scalac";
fi;
-if [ ! -x `which $SCALAC_CMD` ]; then
+scalac=`which "$SCALAC_CMD" 2> /dev/null`
+if [ -z "$scalac" ] || [ ! -x "$scalac" ]; then
printf_failure "Missing command \"$SCALAC_CMD\"; run 'ant <target>'.\\n";
exit 1;
fi;