diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/chanio.test | 7 | ||||
-rw-r--r-- | tests/io.test | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/chanio.test b/tests/chanio.test index a7fb471..d9b73d4 100644 --- a/tests/chanio.test +++ b/tests/chanio.test @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: chanio.test,v 1.1 2007/11/14 19:53:26 andreas_kupries Exp $ +# RCS: @(#) $Id: chanio.test,v 1.2 2007/12/09 22:24:04 hobbs Exp $ if {[catch {package require tcltest 2}]} { chan puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -7451,6 +7451,11 @@ foreach {n msg expected} { } [lrange $expected 0 end] } +test chan-io-73.1 {channel Tcl_Obj SetChannelFromAny} {} { + # Test for Bug 1847044 - don't spoil type unless we have a valid channel + catch {chan close [lreplace [list a] 0 end]} +} {1} + # ### ### ### ######### ######### ######### # cleanup diff --git a/tests/io.test b/tests/io.test index 38c25da..9b76ae3 100644 --- a/tests/io.test +++ b/tests/io.test @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: io.test,v 1.78 2007/11/14 19:53:27 andreas_kupries Exp $ +# RCS: @(#) $Id: io.test,v 1.79 2007/12/09 22:24:03 hobbs Exp $ if {[catch {package require tcltest 2}]} { puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -7451,6 +7451,11 @@ foreach {n msg expected} { } [lrange $expected 0 end] } +test io-73.1 {channel Tcl_Obj SetChannelFromAny} {} { + # Test for Bug 1847044 - don't spoil type unless we have a valid channel + catch {close [lreplace [list a] 0 end]} +} {1} + # ### ### ### ######### ######### ######### # cleanup |