summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@fingolfin.org>2021-11-18 14:58:45 +0000
committerRobert Mustacchi <rm@fingolfin.org>2021-11-19 23:41:11 +0000
commitb15548ab7300ec8625be47442fd92b71ed91c2cd (patch)
treec95f9bbb434e45474007d79ec723d6f12fa9354d /usr/src
parent0153d828c132fdb1a17c11b99386a3d1b87994cf (diff)
downloadillumos-joyent-b15548ab7300ec8625be47442fd92b71ed91c2cd.tar.gz
14245 sed regression tests 7.1 and 7.7 are locale sensitive
Reviewed by: Yuri Pankov <ypankov@tintri.com> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/test/util-tests/tests/sed/bsd/multi_test.ksh7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/test/util-tests/tests/sed/bsd/multi_test.ksh b/usr/src/test/util-tests/tests/sed/bsd/multi_test.ksh
index f331685e81..5a203b2d41 100644
--- a/usr/src/test/util-tests/tests/sed/bsd/multi_test.ksh
+++ b/usr/src/test/util-tests/tests/sed/bsd/multi_test.ksh
@@ -45,6 +45,13 @@ SRCDIR=$(dirname $0)
SED=${SED:=/usr/bin/sed}
+#
+# Sanitize the environment so we're able to operate with known good
+# defaults. Note, tests such as 7.1 require that we're in the C locale.
+#
+unalias -a
+export LANG=C
+
typeset -i err=0
typeset -i pass=0
typeset -i fail=0