test: 00-exit-error, 00-exit-var.

This commit is contained in:
Jan Nieuwenhuizen 2018-12-01 08:42:15 +01:00
parent 932339a5eb
commit 6852e24dc4
5 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,8 @@ tests='
00-exit-0
00-exit-1
00-exit-2
00-exit-error
00-exit-var
01-script-newline
01-script-semi

1
test/00-exit-error.exit Normal file
View File

@ -0,0 +1 @@
2

2
test/00-exit-error.sh Normal file
View File

@ -0,0 +1,2 @@
set +e
ls /foo

1
test/00-exit-var.exit Normal file
View File

@ -0,0 +1 @@
2

3
test/00-exit-var.sh Normal file
View File

@ -0,0 +1,3 @@
set +e
ls /foo
exit $?