diff options
-rwxr-xr-x | test/test.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 6d51639..4c15e34 100755 --- a/test/test.sh +++ b/test/test.sh @@ -29,8 +29,11 @@ for i in {pass,error,xfail}/*.sh ; do expected="$name.pgm.expected" out="$name.pgm.out" ./$(basename $i) 2> $name.stderr.log - [ -f $expected ] && diff $expected $out result=$? + if [ -f $expected ] ; then + diff $expected $out + result=$? + fi case $test_type in pass) if [ $result -eq 0 ] ; then |