diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-14 09:40:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-14 09:40:56 (GMT) |
commit | 3ee25b501bc980e710bef83abee8153f62114640 (patch) | |
tree | 4d2ff4839fbd32a8eba452d3d48dc5b1682e9300 /tests | |
parent | d787284ee18526d2046981d208a0513d480877eb (diff) | |
parent | 4eaff43e124f523dca05591bc760fa9f32eb7672 (diff) | |
download | tcl-3ee25b501bc980e710bef83abee8153f62114640.zip tcl-3ee25b501bc980e710bef83abee8153f62114640.tar.gz tcl-3ee25b501bc980e710bef83abee8153f62114640.tar.bz2 |
Merge trunk.
Add more clarity why refCount should be decremented AFTER checking for <2.
Protect 8.x extensions for being loadable in "novem", by changing Tcl_PkgProvide into a macro.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmdAH.test | 6 | ||||
-rw-r--r-- | tests/zlib.test | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test index 3011597..0517e5f 100644 --- a/tests/cmdAH.test +++ b/tests/cmdAH.test @@ -68,6 +68,12 @@ test cmdAH-1.2 {Tcl_CatchObjCmd, errors} { test cmdAH-1.3 {Tcl_CatchObjCmd, errors} -returnCodes error -body { catch foo bar baz spaz } -result {wrong # args: should be "catch script ?resultVarName? ?optionVarName?"} +test cmdAH-1.4 {Bug 3595576} { + catch {catch {} -> noSuchNs::var} +} 1 +test cmdAH-1.5 {Bug 3595576} { + catch {catch error -> noSuchNs::var} +} 1 test cmdAH-2.1 {Tcl_CdObjCmd} -returnCodes error -body { cd foo bar diff --git a/tests/zlib.test b/tests/zlib.test index 5f1e5fc..891dba0 100644 --- a/tests/zlib.test +++ b/tests/zlib.test @@ -826,6 +826,20 @@ test zlib-11.2 "Bug #3390073: mis-appled gzip filtering" -setup { } -cleanup { removeFile $file } -result {1000 /foo/bar 0} +test zlib-11.3 {Bug 3595576 variant} -setup { + set file [makeFile {} test.input] +} -constraints zlib -body { + set f [open $file wb] + puts -nonewline [zlib push gzip $f -header {filename /foo/bar}] \ + [string repeat "hello" 1000] + close $f + set f [open $file rb] + set d [read $f] + close $f + zlib gunzip $d -header noSuchNs::foo +} -cleanup { + removeFile $file +} -returnCodes error -result {can't set "noSuchNs::foo": parent namespace doesn't exist} ::tcltest::cleanupTests return |