diff options
author | dgp <dgp@users.sourceforge.net> | 2018-06-26 14:23:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-06-26 14:23:58 (GMT) |
commit | 868f84d487516539afa0e7051e2ce3a2ed8c7cc3 (patch) | |
tree | 3048a24917ffbba6f901b2f6358e37cd354f6579 | |
parent | 3c26b9439d5c9a10bfac52bd5e96024b475e79fd (diff) | |
parent | bf884c9bc9d2e89919144c2271c72b96a1eebbef (diff) | |
download | tcl-868f84d487516539afa0e7051e2ce3a2ed8c7cc3.zip tcl-868f84d487516539afa0e7051e2ce3a2ed8c7cc3.tar.gz tcl-868f84d487516539afa0e7051e2ce3a2ed8c7cc3.tar.bz2 |
merge 8.7
-rw-r--r-- | tests/all.tcl | 2 | ||||
-rw-r--r-- | tests/chanio.test | 13 | ||||
-rw-r--r-- | tests/io.test | 11 | ||||
-rw-r--r-- | tests/tcltests.tcl | 2 |
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]] |