Permalink
Browse files

test/parse-errors.sh: assert that the exit code is 2.

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 28, 2018
1 parent fdcaaf4 commit 3f4877a609194803f22490bc7cd11a7e67ec484d
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/parse-errors.sh
View
@@ -22,6 +22,12 @@ _error-case() {
banner "$@"
echo
$SH -c "$@"
# NOTE: This works with osh, not others.
local status=$?
if test $status != 2; then
die "Expected status 2, got $?"
fi
}
# All in osh/word_parse.py

0 comments on commit 3f4877a

Please sign in to comment.