summaryrefslogtreecommitdiffstats
path: root/tests/cmdIL.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-01-19 13:36:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-01-19 13:36:57 (GMT)
commit773c4c75ee2ec9d60766f09ced30a5fef6d812c6 (patch)
treea082b35638d63f5377898996bb748137c0ca382b /tests/cmdIL.test
parent357b7ce73369bce4e0b88aaa87e0b8a2c0eaa853 (diff)
parent0c7be9daeb83147f81ecd891b80398293c36e92a (diff)
downloadtcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.zip
tcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.tar.gz
tcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.tar.bz2
merge trunk
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r--tests/cmdIL.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index 4b1002a..721773f 100644
--- a/tests/cmdIL.test
+++ b/tests/cmdIL.test
@@ -13,6 +13,9 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
+catch [list package require -exact Tcltest [info patchlevel]]
+
# Used for constraining memory leak tests
testConstraint memory [llength [info commands memory]]
testConstraint testobj [llength [info commands testobj]]
@@ -714,6 +717,16 @@ test cmdIL-7.8 {lreverse command - shared intrep [Bug 1675044]} -setup {
rename K {}
} -result 1
+# This belongs in info test, but adding tests there breaks tests
+# that compute source file line numbers.
+test info-20.6 {Bug 3587651} -setup {
+ namespace eval my {namespace eval tcl {namespace eval mathfunc {
+ proc demo x {return 42}
+ }}}} -body { namespace eval my {expr {"demo" in [info functions]}}} -cleanup {
+ namespace delete my
+} -result 1
+
+
# cleanup
::tcltest::cleanupTests
return