utf8opt-3 needs to be split in half, part of it needs-ctty
10x arekm again
This commit is contained in:
parent
a4a000eafb
commit
3f014c8daf
23
check.t
23
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user