| Ticket UUID: | 3606564 | |||
| Title: | test fail - can't delete "namespace": command doesn't exist | |||
| Type: | Bug | Version: | None | |
| Submitter: | jlec | Created on: | 2013-03-01 17:56:24 | |
| Subsystem: | Build System & Testing | Assigned To: | andreas_kupries | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2013-03-02 04:22:14 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2013-03-01 21:22:14 | |||
| Description: |
when running the testsuite with
tclsh8.6 ./sak.tcl validate
I get following error
[ ] zip ~~ 0/ 2 ! 2 U 0 E 0 W 0
can't delete "namespace": command doesn't exist
while executing
"::rename namespace {}"
invoked from within
"interp eval $ip [list ::rename namespace {}]"
(procedure "Setup" line 19)
invoked from within
"Setup"
(procedure "sak::validate::testsuites::run" line 31)
invoked from within
"sak::validate::testsuites::run $modules $mode $stem $tclv"
(procedure "sak::validate::all" line 9)
invoked from within
"sak::validate::$cmd $argv $mode($raw$log) $stem $tclv"
(file "./support/devel/sak/validate/cmd.tcl" line 67)
invoked from within
"source $cmdf"
invoked from within
"if {[file exists $cmdf] && [file readable $cmdf]} {
source $cmdf
exit 0
}"
(file "./sak.tcl" line 2402)
| |||
| User Comments: |
andreas_kupries added on 2013-03-02 04:22:14:
allow_comments - 1 Fixed. Committed: https://core.tcl.tk/tcllib/info/367195678d Pushed. Thank you for the report. andreas_kupries added on 2013-03-02 02:00:27: sak::validate::syntax::... has the same setup code and bug. andreas_kupries added on 2013-03-02 01:50:56: Hah. The problem is the line immediately before, the 'namespace delete ::tcl'. In 8.6, with namespace ensemblified the implementations of the namespace methods are in that name, and deleted. At which point the namespace command is broken and gone. I think, I should not kill the ::tcl namespace in 8.6. It has started to contain necessary commands. andreas_kupries added on 2013-03-02 01:22:57: Problem confirmed. Aslo confirmed that it does not appear for Tcl 8.5.
First hypothesis that the ensemblification of the "namespace" command in8.6 may play a role.
hephaistos:(506) ~/Projects/Tcllib/tcllib > ../1.TestSupport/8.5/Install/bin/tclsh8.5
% info commands name*
namespace
% namespace ensemble exists ::namespace
0
hephaistos:(507) ~/Projects/Tcllib/tcllib > ../1.TestSupport/8.6/Install/bin/tclsh8.6
% info commands name*
namespace
% namespace ensemble exists ::namespace
1
Side note for the curious.
./sak.tcl validate
does not run the per-package testsuites per se, that is done by
./sak.tcl test run
| |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki