summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-01-08 18:15:30 (GMT)
committersebres <sebres@users.sourceforge.net>2019-01-08 18:15:30 (GMT)
commitcc6df875d61dde74a9824a0064deba8b52703f65 (patch)
treea3e02a49e52d45e8aee0513fb7a853474cb7f12a
parent8692d794c4849ab10814860347fd980de3e4cbcd (diff)
downloadtcl-cc6df875d61dde74a9824a0064deba8b52703f65.zip
tcl-cc6df875d61dde74a9824a0064deba8b52703f65.tar.gz
tcl-cc6df875d61dde74a9824a0064deba8b52703f65.tar.bz2
fixed missing dependency in test-cases "*io-60.1" (constraint-related) - missed load of tcltest-library in sub-process
-rw-r--r--tests/chanio.test8
-rw-r--r--tests/io.test8
2 files changed, 12 insertions, 4 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 6408f50..230d37c 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -30,8 +30,11 @@ namespace eval ::tcl::test::io {
variable msg
variable expected
- loadTestedCommands
- catch [list package require -exact Tcltest [info patchlevel]]
+ catch {
+ ::tcltest::loadTestedCommands
+ package require -exact Tcltest [info patchlevel]
+ set ::tcltestlib [lindex [package ifneeded Tcltest [info patchlevel]] 1]
+ }
package require tcltests
testConstraint testbytestring [llength [info commands testbytestring]]
@@ -7446,6 +7449,7 @@ test chan-io-59.1 {Thread reference of channels} {testmainthread testchannel} {
test chan-io-60.1 {writing illegal utf sequences} {openpipe fileevent testbytestring} {
# This test will hang in older revisions of the core.
set out [open $path(script) w]
+ chan puts $out "catch {load $::tcltestlib Tcltest}"
chan puts $out {
chan puts [testbytestring \xe2]
exit 1
diff --git a/tests/io.test b/tests/io.test
index 996e125..fe1052a 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -29,8 +29,11 @@ namespace eval ::tcl::test::io {
variable msg
variable expected
- loadTestedCommands
- catch [list package require -exact Tcltest [info patchlevel]]
+ catch {
+ ::tcltest::loadTestedCommands
+ package require -exact Tcltest [info patchlevel]
+ set ::tcltestlib [lindex [package ifneeded Tcltest [info patchlevel]] 1]
+ }
package require tcltests
testConstraint testbytestring [llength [info commands testbytestring]]
@@ -8270,6 +8273,7 @@ test io-60.1 {writing illegal utf sequences} {openpipe fileevent testbytestring}
# This test will hang in older revisions of the core.
set out [open $path(script) w]
+ puts $out "catch {load $::tcltestlib Tcltest}"
puts $out {
puts [testbytestring \xe2]
exit 1