summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-06-26 14:23:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-06-26 14:23:22 (GMT)
commitbf884c9bc9d2e89919144c2271c72b96a1eebbef (patch)
treeb38cd484643ad46a0e889e23c75b71d93b057083
parentfdee46ab16b879589155729e6db4fdabe235880f (diff)
parented5ed756bc5993edb110e13b90028646b413e92d (diff)
downloadtcl-bf884c9bc9d2e89919144c2271c72b96a1eebbef.zip
tcl-bf884c9bc9d2e89919144c2271c72b96a1eebbef.tar.gz
tcl-bf884c9bc9d2e89919144c2271c72b96a1eebbef.tar.bz2
merge 8.6
-rw-r--r--tests/all.tcl2
-rw-r--r--tests/chanio.test13
-rw-r--r--tests/io.test11
-rw-r--r--tests/tcltests.tcl2
4 files changed, 12 insertions, 16 deletions
diff --git a/tests/all.tcl b/tests/all.tcl
index 4fce323..e14bd9c 100644
--- a/tests/all.tcl
+++ b/tests/all.tcl
@@ -13,7 +13,7 @@
package prefer latest
package require Tcl 8.5-
package require tcltest 2.2
-namespace import -force ::tcltest::*
+namespace import ::tcltest::*
configure {*}$argv -testdir [file dirname [file dirname [file normalize [
info script]/...]]]
diff --git a/tests/chanio.test b/tests/chanio.test
index b77f2aa..e7f51b3 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -13,16 +13,11 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
+# TODO: This test is likely worthless. Confirm and remove
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
- namespace import -force ::tcltest::*
}
-::tcltest::loadTestedCommands
-catch [list package require -exact Tcltest [info patchlevel]]
-
-testConstraint testbytestring [llength [info commands testbytestring]]
-
namespace eval ::tcl::test::io {
namespace import ::tcltest::*
@@ -35,9 +30,11 @@ namespace eval ::tcl::test::io {
variable msg
variable expected
- ::tcltest::loadTestedCommands
+ loadTestedCommands
catch [list package require -exact Tcltest [info patchlevel]]
-
+ package require tcltests
+
+ testConstraint testbytestring [llength [info commands testbytestring]]
testConstraint testchannel [llength [info commands testchannel]]
testConstraint openpipe 1
testConstraint testfevent [llength [info commands testfevent]]
diff --git a/tests/io.test b/tests/io.test
index c1d5205..683a1b2 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -15,14 +15,8 @@
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
- namespace import -force ::tcltest::*
}
-::tcltest::loadTestedCommands
-catch [list package require -exact Tcltest [info patchlevel]]
-
-testConstraint testbytestring [llength [info commands testbytestring]]
-
namespace eval ::tcl::test::io {
namespace import ::tcltest::*
@@ -35,6 +29,11 @@ namespace eval ::tcl::test::io {
variable msg
variable expected
+ loadTestedCommands
+ catch [list package require -exact Tcltest [info patchlevel]]
+ package require tcltests
+
+testConstraint testbytestring [llength [info commands testbytestring]]
testConstraint testchannel [llength [info commands testchannel]]
testConstraint openpipe 1
testConstraint testfevent [llength [info commands testfevent]]
diff --git a/tests/tcltests.tcl b/tests/tcltests.tcl
index 2105279..74d1b40 100644
--- a/tests/tcltests.tcl
+++ b/tests/tcltests.tcl
@@ -1,7 +1,7 @@
#! /usr/bin/env tclsh
package require tcltest 2.2
-namespace import -force ::tcltest::*
+namespace import ::tcltest::*
testConstraint exec [llength [info commands exec]]
testConstraint fcopy [llength [info commands fcopy]]