From e0e0876e7ef339523345792e5691a4d7000116dc Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 2 Jun 2008 20:44:07 +0000 Subject: [PATCH] fix regression test: Solaris has $^O solaris not sunos, and locales of the style xx.UTF-8 not xx.utf8, so just split the test into two --- check.t | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/check.t b/check.t index bd961b5..d84d75b 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.196 2008/05/17 18:27:54 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.197 2008/06/02 20:44:07 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -4387,10 +4387,27 @@ stdin: expected-stdout: is not set --- -name: utf8opt-2 +name: utf8opt-2a description: Check that the utf8-hack flag is set at interactive startup -category: pdksh +category: pdksh,os:solaris +arguments: !-i! +env-setup: !PS1=!PS2=!LC_CTYPE=en_US.UTF-8! +stdin: + if [[ $(set +o) = *@(-o utf8-hack)@(| *) ]]; then + print is set + else + print is not set + fi +expected-stdout: + is set +expected-stderr-pattern: + /(# )*/ +--- +name: utf8opt-2b +description: + Check that the utf8-hack flag is set at interactive startup +category: pdksh,!os:solaris arguments: !-i! env-setup: !PS1=!PS2=!LC_CTYPE=en_US.utf8! stdin: