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
This commit is contained in:
tg 2008-06-02 20:44:07 +00:00
parent f7d5a16363
commit e0e0876e7e

23
check.t
View File

@ -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: