From 3f014c8daff9c035d71e1d5286a993df103338de Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 7 Jul 2011 21:02:39 +0000 Subject: [PATCH] utf8opt-3 needs to be split in half, part of it needs-ctty 10x arekm again --- check.t | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/check.t b/check.t index 45c134b..d7783d0 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.473 2011/07/07 20:24:50 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.474 2011/07/07 21:02:39 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 $ @@ -5937,24 +5937,35 @@ expected-stdout: expected-stderr-pattern: /(# )*/ --- -name: utf8opt-3 +name: utf8opt-3a description: Ensure ±U on the command line is honoured - (this test may pass falsely depending on CPPFLAGS) + (these two tests may pass falsely depending on CPPFLAGS) stdin: export i=0 code='if [[ $- = *U* ]]; then echo $i on; else echo $i off; fi' let i++; "$__progname" -U -c "$code" let i++; "$__progname" +U -c "$code" + echo $((++i)) done +expected-stdout: + 1 on + 2 off + 3 done +--- +name: utf8opt-3b +description: + Ensure ±U on the command line is honoured, interactive shells +need-ctty: yes +stdin: + export i=0 + code='if [[ $- = *U* ]]; then echo $i on; else echo $i off; fi' let i++; "$__progname" -U -ic "$code" let i++; "$__progname" +U -ic "$code" echo $((++i)) done expected-stdout: 1 on 2 off - 3 on - 4 off - 5 done + 3 done --- name: aliases-1 description: