summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-31 07:49:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-31 07:49:16 (GMT)
commit64e3a23bfdcfbe7b66872c58d095aa6e1868f95e (patch)
treeab9ab0930e901eb23d8d07e261cfa010ca3e0a71 /tests
parentd3dae9eba4c8d979d72feddfded60eb08835543d (diff)
downloadtcl-64e3a23bfdcfbe7b66872c58d095aa6e1868f95e.zip
tcl-64e3a23bfdcfbe7b66872c58d095aa6e1868f95e.tar.gz
tcl-64e3a23bfdcfbe7b66872c58d095aa6e1868f95e.tar.bz2
SetFlag -> GotFlag (since SetFlag always returns 1, this is nonsence in an if() statement). Also add test-case, showing that it was actually wrong, in behavior too.
Diffstat (limited to 'tests')
-rw-r--r--tests/ioCmd.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 73f0e1c..1a72f70 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.test
@@ -376,6 +376,16 @@ test iocmd-8.21 {fconfigure command / -nocomplainencoding 0 error} -constraints
} -body {
fconfigure $console -nocomplainencoding 0
} -returnCodes error -result "bad value for -nocomplainencoding: only true allowed"
+test iocmd-8.22 {fconfigure command / -nocomplainencoding 0, no error if -strictencoding already defined} -setup {
+ set console stdin
+ set oldmode [fconfigure $console -strictencoding]
+} -body {
+ fconfigure $console -strictencoding 1
+ fconfigure $console -nocomplainencoding 0
+ fconfigure $console -nocomplainencoding
+} -cleanup {
+ fconfigure $console -strictencoding $oldmode
+} -result 0
test iocmd-9.1 {eof command} {