Permalink
Browse files
test/parse-errors.sh: assert that the exit code is 2.
- Loading branch information...
Showing
with
6 additions
and
0 deletions.
-
+6
−0
test/parse-errors.sh
|
|
@@ -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