sh: Add test for 'set -o nolog'.

The option does not do anything so check that the output of 'set +o' is
different.
This commit is contained in:
Jilles Tjoelker 2016-03-09 21:05:21 +00:00
parent c94a041f43
commit 6dbe471130
2 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,7 @@ FILES+= return7.4
FILES+= return8.0
FILES+= set1.0
FILES+= set2.0
FILES+= set3.0
FILES+= trap1.0
FILES+= trap10.0
FILES+= trap11.0

View File

@ -0,0 +1,4 @@
# $FreeBSD$
settings1=$(set +o) && set -o nolog && settings2=$(set +o) &&
[ "$settings1" != "$settings2" ]