From 6e5195ef2041afee332153334ca8313db8188558 Mon Sep 17 00:00:00 2001 From: jilles Date: Wed, 9 Mar 2016 21:05:21 +0000 Subject: [PATCH] sh: Add test for 'set -o nolog'. The option does not do anything so check that the output of 'set +o' is different. --- bin/sh/tests/builtins/Makefile | 1 + bin/sh/tests/builtins/set3.0 | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 bin/sh/tests/builtins/set3.0 diff --git a/bin/sh/tests/builtins/Makefile b/bin/sh/tests/builtins/Makefile index 4811bb3221c6..82926658e045 100644 --- a/bin/sh/tests/builtins/Makefile +++ b/bin/sh/tests/builtins/Makefile @@ -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 diff --git a/bin/sh/tests/builtins/set3.0 b/bin/sh/tests/builtins/set3.0 new file mode 100644 index 000000000000..c5536e96b7a1 --- /dev/null +++ b/bin/sh/tests/builtins/set3.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +settings1=$(set +o) && set -o nolog && settings2=$(set +o) && +[ "$settings1" != "$settings2" ]