aboutsummaryrefslogtreecommitdiff
path: root/scripts/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runtest.sh')
-rw-r--r--scripts/runtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runtest.sh b/scripts/runtest.sh
index 90d6299b..d1ae4408 100644
--- a/scripts/runtest.sh
+++ b/scripts/runtest.sh
@@ -114,7 +114,7 @@ testing()
fi
echo -ne "$3" > expected
- echo -ne "$4" > input
+ [ ! -z "$4" ] && echo -ne "$4" > input || rm -f input
echo -ne "$5" | ${EVAL:-eval} -- "$2" > actual
RETVAL=$?