tcltest::cleanupTests should complain if arrays are not unse
Closed / Rejected219182ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 23 years ago
Descriptionplain2000-10-26 05:03:00
OriginalBugID: 2198 RFE Version: 8.1.1 SubmitDate: '1999-06-08' LastModified: '1999-11-23' Severity: LOW Status: Assigned Submitter: hershey ChangedBy: jenn OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' If a test file uses a global array "foo" and doesn't unset it, another test file will be affected when it tries to set the scalar var "foo". The fix for this problem: 1) store existing array names when defs.tcl is sourced 2) in tcltest::cleanupTests, check if any new arrays exist. If so, warn the user, who should change the test file to always unset the array.
andreas_kupries Ticket [219182ffff]: 1 change
[History diff]2001-09-08 06:23:39
hobbs Ticket [219182ffff]: 1 change
[History diff]2002-03-23 06:06:32
dgp Ticket [219182ffff]: 3 changes
[History diff]2002-03-25 22:55:53
dgpplain2003-11-13 06:13:55
Logged In: YES user_id=80530 better idea is to use the generic tools that Tcl provides to prevent name collisions with other scripts: namespaces
Log in (anonymous is fine) to add a comment.