Fix some problems with test code
diff --git a/tests/scripts.sh b/tests/scripts.sh
index 8ff9cbf..82c9ac5 100755
--- a/tests/scripts.sh
+++ b/tests/scripts.sh
@@ -40,6 +40,10 @@
 
 if [ "$d" = "bc" ]; then
 	options="-lq"
+	halt="halt"
+else
+	options="-x"
+	halt="q"
 fi
 
 scriptdir="$testdir/$d/scripts"
@@ -63,11 +67,11 @@
 	elif [ -f "$results" ]; then
 		res="$results"
 	else
-		echo "halt" | $d $options "$s" > "$out1"
+		echo "$halt" | $d $options "$s" > "$out1"
 		res="$out1"
 	fi
 
-	echo "halt" | "$exe" "$@" $options "$s" > "$out2"
+	echo "$halt" | "$exe" "$@" $options "$s" > "$out2"
 
 	diff "$res" "$out2"
 
diff --git a/tests/test.sh b/tests/test.sh
index 364042a..60b427e 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -50,6 +50,7 @@
 	options="-lq"
 	halt="halt"
 else
+	options="-x"
 	halt="q"
 fi