summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * tests/platform.test: Update tests to expect revised resultsdgp2008-09-252-3/+3
| | | | * tests/safe.test: corresponding to the TIP 315 change.
* Fix [Bug 2120903]dkf2008-09-251-12/+25
|
* TIP #323 IMPLEMENTATION (partial)dgp2008-09-242-8/+12
| | | | | | | | * doc/file.n: Revise [file delete] and [file mkdir] to * generic/tclCmdAH.c: accept zero "pathname" arguments (the * generic/tclFCmd.c: no-op case). * tests/cmdAH.test: * tests/fCmd.test:
* Implementation of TIP #320.#320.#320.dkf2008-09-231-3/+190
|
* Use the powers of tcltest2 for good! Also add basic testing of disassmblerdkf2008-09-106-1440/+1394
| | | | (though not of its output format).
* * tests/nre.test: add missing constraints; enable test of foreachMiguel Sofer2008-09-101-3/+46
| | | | | | | | | recursion. * generic/tclBasic.c: * generic/tclCompile.h: * generic/tclExecute.c (INST_EVAL_STK): fix for [Bug 2102930], wrong numLevels when evaling a canonical list.
* Simplify test bodies using tcltest2dkf2008-09-083-522/+524
|
* * generic/tclTrace.test (TraceVarProc):Miguel Sofer2008-09-051-1/+26
| | | | | * generic/unsupported.test: insure that unset traces are run even when the coroutine is unwinding [Bug 2093947]
* * generic/tclExecute.c (CACHE_STACK_INFO):Miguel Sofer2008-09-041-1/+42
| | | | | * tests/unsupported.test: restore the execEnv's bottomPtr, fix for [Bug 2093188].
* Use tcltest2 better.dkf2008-09-021-419/+395
|
* * generic/tclCmdAH.c: nre-enabling [eval]; eval scripts are nowMiguel Sofer2008-09-013-22/+204
| | | | | | | * generic/tclOOBasic.c: bytecompiled. Adapted recursion limit tests * tests/interp.test: that were relying on eval not being * tests/nre.test: compiled. Part of the [Bug 2017632] project. * tests/unsupported.test:
* * generic/tclBasic.c (InfoCoroutine):Miguel Sofer2008-08-261-1/+23
| | | | | | * tests/unsupported.test: new command that returns the FQN of the currently executing coroutine. Lives as infoCoroutine under unsupported, but is designed to become a subcommand of [info]
* speling ficksdgp2008-08-222-7/+7
|
* * generic/tclUtil.c (TclReToGlob): Added missing set of thedgp2008-08-221-9/+9
| | | | | *exactPtr value to really fix [Bug 2065115]. * tests/regexpComp.test: Correct duplicate test names.
* * generic/tclBasic.c: Previous fix, now done right.Miguel Sofer2008-08-211-1/+29
| | | | | | * generic/tclCmdIL.c: * generic/tclInt.h: * tests/unsupported.test:
* really fix translation to escape glob-sensitive charshobbs2008-08-211-0/+21
|
* * tests/regexp.test, tests/regexpComp.test: correct re2glob ***=hobbs2008-08-212-2/+64
| | | | | * generic/tclUtil.c (TclReToGlob): translation from exact to anywhere-in-string match. [Bug 2065115]
* Fix performance bug introduced by fix of [Bug 2037727]dkf2008-08-201-8/+23
|
* * generic/tclBasic.c: Implementation of [coroutine] and [yield]Miguel Sofer2008-08-171-10/+312
| | | | | | | | * generic/tclCmdAH.c: commands (in tcl::unsupported). * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclInt.h: * tests/unsupported.test:
* * generic/tclTest.c (TestconcatobjCmd):Miguel Sofer2008-08-171-1/+6
| | | | | | | | | | * generic/tclUtil.c (Tcl_ConcatObj): * tests/util.test (util-4.7): fix [Bug 1447328]; the original "fix" turned Tcl_ConcatObj() into a hairy monster. This was exposed by [Bug 2055782]. Additionally, Tcl_ConcatObj could corrupt its input under certain conditions! *** NASTY BUG FIXED ***
* * tests/fileName.test: Revise new tests for portability to casedgp2008-08-141-4/+4
| | | | insensitive filesystems.
* * tests/fCmd.test (fCmd-6.23): made result matching robust when testdas2008-08-141-2/+2
| | | | workdir and /tmp are not on same FS.
* * tests/nre.test: added test for large {*}-expansion effectsMiguel Sofer2008-08-131-1/+17
|
* * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-131-1/+38
| | | | | * tests/fileName.test: option to [glob]. [Bug 1750300] Thanks to Matthias Kraft and George Peter Staplin.
* * generic/tclProc.c (Tcl_ProcObjCmd): Fixed memory leak triggeredandreas_kupries2008-08-111-5/+31
| | | | | | * tests/proc.test: by procbody::test::proc. See [Bug 2043636]. Added a test case demonstrating the leak before the fix. Fixed a few spelling errors in test descriptions as well.
* (lrange-1.17): add test cleanup; whitespacedas2008-08-091-7/+7
|
* * generic/tclOO.c: Revised TclOO's check for an interpdgp2008-08-061-1/+29
| | | | | | | | | | being deleted during handling of object command deletion. The old code was relying on documented features of command delete traces that do not in fact work. [Bug 2039178]. * tests/oo.test (oo-26.*): Added tests that demonstrate failure of TclOO to check for various kinds of invalid bytecode during method dispatch. [Bug 2037727].
* * generic/tclExecute.c: Fix for [Bug 2038069] by dgp.Miguel Sofer2008-08-051-1/+16
| | | | * tests/execute.test:
* * tests/nre.test: added tests for [if], [while] and [for]. A testMiguel Sofer2008-08-041-2/+45
| | | | | for [foreach] has been added and marked as knownbug, awaiting for it to be NR-enabled.
* missing commit to tests/unsupported.testMiguel Sofer2008-08-041-1/+51
|
* * generic/tclExecute.c: Stopped faulty double-logging of errors todgp2008-08-041-1/+22
| | | | | | * tests/execute.test: stack trace when a compile epoch bump triggers fallback to direct evaluation of commands in a compiled script. [Bug 2037338]
* * generic/tclBasic.c: new unsupported command atProcExitMiguel Sofer2008-08-031-11/+157
| | | | | | | | | * generic/tclCompile.h: that shares the implementation with * generic/tclExecute.c: tailcall. Fixed a segfault in * generic/tclInt.h: tailcalls. Tests added. * generic/tclInterp.c: * generic/tclNamesp.c: * tests/unsupported.test:
* remove NRE.test & add new test files to Tcl.xcodeprojdas2008-08-031-0/+0
|
* * tests/NRE.test: made empty, waiting for removal until das doesMiguel Sofer2008-08-023-476/+543
| | | | | | | | his thing in macosx/Tcl.xcodeproj/project.pbxproj * tests/nre.test: migrated tests to standard locations, * tests/unsupported.test: separating core functionality from the experimental commands. These are new files.
* * generic/tclBasic.c: Revised timing of the CmdFrame stack managementdgp2008-08-011-1/+8
| | | | | | | | * tests/info.test: in TclEvalEx so that the CmdFrame will still be on the stack at the time Tcl_LogCommandInfo is called to append another level of -errorinfo information. Sets the stage to add file and line data to the stack trace. Added test to check that [info frame] functioning remains unchanged by the revision.
* * tests/NRE.test: replaced all deep-recursing tests by shallowerMiguel Sofer2008-08-011-246/+122
| | | | | tests that actually measure the C-stack depth. This makes them bearable again (even under memdebug) and avoid crashing on failure.
* * generic/tclBasic.c: NR-enabling [catch]Miguel Sofer2008-07-311-1/+18
| | | | | | * generic/tclCmdAH.c: * generic/tclInt.h: * tests/NRE.test:
* restricting usage and avoiding panics in [tailcall]Miguel Sofer2008-07-311-88/+7
|
* * generic/tclBasic.c: Improved tailcalls and tests.Miguel Sofer2008-07-311-50/+64
| | | | | | | * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclTest.c: * tests/NRE.test:
* * tests/NRE.test: new tests that went MIA in the NRE revampingMiguel Sofer2008-07-291-3/+223
|
* * test/info.test: More work on singleTestInterp usability. Thisandreas_kupries2008-07-251-51/+55
| | | | fixes bug [1605269].
* * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-252-18/+98
| | | | | | | | | | | | | | | | | of location for uplevel scripts. Resolved merge conflict on info-37.0, switched !singleTestInterp constraint to glob matching instead. Ditto info-22.8, removed constraint, more glob matching, and reduced the depth of the stack we check. More is coming, right now I want to commit the bug fixes. * tests/oo.test: Updated oo-22.1 for expanded location tracking. * generic/tclCompile.c (TclInitCompileEnv): Reorganized the initialization of the #280 location information to match the flow in TclEvalObjEx to get more absolute contexts. * generic/tclBasic.c (TclEvalObjEx): Added missing cleanup of extended location information.
* * tests/info.test (info-37.0): Add !singleTestInterp constraint;das2008-07-251-21/+21
| | | | | | (info-22.8, info-23.0): switch to glob matching to avoid sensitivity to tcltest.tcl line number changes, remove knownBug constraint, fix expected result. [Bug 1605269]
* Added relative speed test for pure byte array concats.ferrieux2008-07-231-1/+12
|
* Added relative speed test for lrange, checking fro in-place optimization.ferrieux2008-07-231-2/+7
|
* * tests/info.test: Reordered the tests to have monotonouslyandreas_kupries2008-07-231-154/+154
| | | | increasing numbers.
* Rename new test to avoid duplicate test name.andreas_kupries2008-07-231-2/+2
|
* * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-1/+27
| | | | | | | | | | * generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour.
* * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-7/+7
| | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c: * tests/info.test:
* fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-215-15/+15
|