Enable the errexit specification test

* tests/spec/Makefile.am (TESTS): Add errexit.
* tests/spec/oil.scm: Filter and modify five of its tests.
This commit is contained in:
Timothy Sample 2018-11-25 21:53:52 -05:00
parent 50328c8c66
commit 0ec3ed02a0
2 changed files with 17 additions and 0 deletions

View File

@ -19,6 +19,7 @@ SH_LOG_COMPILER = ./check-spec
TESTS = \
oil/spec/case_.test.sh \
oil/spec/errexit.test.sh \
oil/spec/loop.test.sh \
oil/spec/quote.test.sh \
oil/spec/redirect.test.sh \

View File

@ -104,6 +104,22 @@
(;; These two are Bash specific.
("Case statement with ;;&")
("Case statement with ;&")))
("spec/errexit.test.sh"
(;; We do not have the time built-in.
("errexit and time { }")
;; Follow Dash on this one.
("errexit with (( ))"
("N-I dash" "N-I dash/geesh"))
;; These next two are due to a difference
;; between the Oil shell and every other shell.
;; Oil thinks that setting the errexit option in
;; a context in which it is normally ignored
;; should make it no longer ignored. We leave
;; it ignored like every other shell.
("setting errexit while it's being ignored")
("setting errexit while it's being ignored in a subshell")
;; We do not do background processes yet.
("background processes respect errexit")))
("spec/loop.test.sh"
(;; We do not do tilde expansion yet.
("Tilde expansion within for loop")