summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* mergeKevin B Kenny2010-10-092-12/+41
|
* Added catches. Still needs a lot of testing.Kevin B Kenny2010-10-061-5/+81
|
* nop and regexpKevin B Kenny2010-10-021-0/+69
|
* added missing tests: nsupvar, variable, upvarKevin B Kenny2010-10-021-1/+41
|
* * generic/tclAssembly.c:Kevin B Kenny2010-10-022-2/+246
| | | | | | | | * generic/tclAssembly.h: * tests/assemble.test: Added dictAppend, dictIncrImm, dictLappend, dictSet, dictUnset, nsupvar, upvar, and variable. (Still need tests for the last three.) Merged changes from HEAD.
* Added listIn, listNotIn, and dictGet.Kevin B Kenny2010-10-011-9/+88
|
* * tests/assemble.test: Added tryCvtToNumeric and several more listKevin B Kenny2010-09-301-70/+367
| | | | * generic/tclAssemble.c: operations.
* * tests/assemble.test: Completed conversion of tests to aKevin B Kenny2010-09-291-481/+381
| | | | | | * generic/tclAssemble.c: "white box" structure that follows the C code. Added missing safety checks on the operands of 'over' and 'reverse' so that negative operand counts don't smash the stack.
* mergeKevin B Kenny2010-09-282-123/+119
|
* * tests/assemble.test: Added more "white box" tests.Kevin B Kenny2010-09-281-2/+233
| | | | | | | | | | | | * generic/tclAssembly.c: Added the error checking and reporting for undefined labels. Revised code so that no pointers into the bytecode sequence are held (because the sequence can move!), that no Tcl_HashEntry pointers are held (because the hash table doesn't guarantee their stability!) and to eliminate the BBHash table, which is merely additional information indexed by jump labels and can just as easily be held in the 'label' structure. Renamed shared structures to CamelCase, and renamed 'label' to JumpLabel because other types of labels may eventually be possible.
* * tests/assemble.test: Added more "white box" tests.Kevin B Kenny2010-09-271-14/+458
| | | | | | | | * generic/tclAssembly.c: Fixed bugs exposed by the new tests. (a) [eval] and [expr] had incorrect stack balance computed if the arg was not a simple word. (b) [concat] accepted a negative operand count. (c) [invoke] accepted a zero or negative operand count. (d) more misspelt error messages.
* * tests/assemble.test: Added many new tests moving toward a moreKevin B Kenny2010-09-261-75/+1054
| | | | | | | | | | comprehensive test suite for the assembler. * generic/tclAssembly.c: Fixed bugs exposed by the new tests: (a) [bitnot] and [not] had incorrect operand counts. (b) INST_CONCAT cannot concatenate zero objects. (c) misspelt error messages. (d) the "assembly code" internal representation lacked a duplicator, which caused double-frees of the Bytecode object if assembly code ever was duplicated.
* added more tests; fixed a bug in initialization of BasicBlock objKevin B Kenny2010-09-251-6/+103
|
* * tclAssembly.c: Massive refactoring of the assemblerKevin B Kenny2010-09-254-425/+686
| | | | | | | | | * tclAssembly.h: to use a Tcl-like syntax (and use * tests/assemble.test: Tcl_ParseCommand to parse it). The * tests/assemble1.bench: refactoring also ensures that Tcl_Tokens in the assembler have string ranges inside the source code, which allows for [eval] and [expr] assembler directives that simply call TclCompileScript and TclCompileExpr recursively.
* initial commit of Ozgur Dogan Ugurlu's (SF user:dogeen) assembler for the ↵Kevin B Kenny2010-09-212-0/+576
| | | | Tcl bytecode language
* * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 3067036]: Makedkf2010-09-151-2/+23
| | | | | sure we never try to double zero repeatedly to get a buffer size. Also added a check for sanity on the size of buffer being appended.
* * generic/tclExecute.c: [Bug 3057639]. Applied patch by Jeff toandreas_kupries2010-09-012-7/+128
| | | | | | | * generic/tclVar.c: make the behaviour of lappend in bytecompiled * tests/append.test: mode consistent with direct-eval and 'append' * tests/appendComp.test: generally. Added tests (append*-9.*) showing the difference.
* * generic/tclBasic.c: New implementation for [tailcall]:Miguel Sofer2010-08-301-28/+72
| | | | | | | | | * generic/tclCmdAH.c: it now schedules the command and returns * generic/tclCmdMZ.c: TCL_RETURN. This fixes all issues with * generic/tclExecute.c: [catch] and [try] - [Bug 3046594], * generic/tclInt.h: [Bug 3047235] and [Bug 3048771]. Thanks * generic/tclNamesp.c: dgp for exploring the dark corners. * tests/tailcall.test: More thorough testing is required.
* * generic/tclBasic.c: Redesign of [tailcall] toMiguel Sofer2010-08-181-5/+17
| | | | | | | | | * generic/tclCmdAH.c: (a) fix #3047235 * generic/tclCompile.h: (b) enable fix for #3046594 * generic/tclExecute.c: (c) enable recursive tailcalls * generic/tclInt.h: * generic/tclNamesp.c: * tests/tailcall.test:
* * library/safe.tcl (AliasGlob): [Bug 3004191]: Restore safe [glob] todkf2010-08-181-1/+8
| | | | working condition.
* * generic/tclProc.c (ProcWrongNumArgs): [Bug 3045010]: Make thedkf2010-08-151-47/+44
| | | | | handling of passing the wrong number of arguments to [apply] somewhat less verbose when a lambda term is present.
* added test for yieldToMiguel Sofer2010-08-111-1/+15
|
* * generic/tclIORChan.c: [Bug 3034840]: Fixed reference countingandreas_kupries2010-08-041-1/+23
| | | | | * generic/tclIORTrans.c: in InvokeTclMethod and callers. * tests/ioTrans.test:
* Fix OBOE error in the forward ported info-39.1andreas_kupries2010-08-031-5/+5
|
* Test iocmd-32.2 tests for Bug 3034840dgp2010-08-031-1/+14
|
* * tests/var.test (var-19.1): [Bug 3037525]: Added testandreas_kupries2010-08-031-1/+8
| | | | demonstrating the local hashtable deletion crash and fix.
* * tests/info.test (info-39.1): Added forward copy of test in 8.5andreas_kupries2010-08-031-1/+42
| | | | | branch about [Bug 2933089]. Should not fail, and doesn't, after updating the line numbers to the changed position.
* Tidying up and taking better advantage of tcltest2 to make the tests moredkf2010-07-051-386/+387
| | | | | robust and (apparently) similar through focusing in on what is really being tested
* D'oh!dkf2010-07-051-2/+2
|
* Add a little emacs magicdkf2010-07-041-5/+7
|
* * generic/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Madedkf2010-07-021-15/+21
| | | | | | sure that errors caused by an argument to an operator being outside the domain of the operator all result in ::errorCode being ARITH DOMAIN and not NONE.
* prevent a race condition when shutting down the remote test serverrmax2010-06-251-3/+2
|
* * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-222-2/+2
| | | | args message.
* Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-022-6/+6
| | | | offsets no longer overestimated.
* Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-312-6/+6
| | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch.
* Fix filesystem-5.1 test failure on CYGWINnijtmans2010-05-311-1/+1
|
* * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions): [3007374]:dkf2010-05-281-1/+18
| | | | | Corrected error in handling of catch contexts to prevent crash with chained handlers.
* optParse.tcl: eliminate ';' at line end, bump to v0.4.6nijtmans2010-05-271-2/+2
|
* optParse.tcl: Don't generate spaces at the end of a line.nijtmans2010-05-272-26/+26
|
* Also check the reverse path of dict->list EIAS violation.ferrieux2010-05-201-1/+2
|
* Add missing test for [Bug 3004007], fixed under the radar on 2010-02-24 ↵ferrieux2010-05-191-1/+2
| | | | (dkf): EIAS violation in list-dict conversions.
* Fix the problems I introduced inadvertently:dkf2010-04-301-14/+23
| | | | | | * generic/tclBasic.c (NRInterpCoroutine): Corrected handling of * tests/coroutine.test (coroutine-6.4): arguments to deal with trickier cases.
* * tests/coroutine.test: testing coroutine arguments after [yield]:Miguel Sofer2010-04-301-1/+26
| | | | check that only 0/1 allowed
* * generic/tclCompCmdsSZ.c (TclSubstCompile): If the first token doesdkf2010-04-081-3/+17
| | | | | | | | not result in a *guaranteed* push of a Tcl_Obj on the stack, we must push an empty object. Otherwise it is possible to get to a 'concat1' or 'done' without enough values on the stack, resulting in a crash. Thanks to Joe Mistachkin for identifying a script that could trigger this case.
* TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-056-15/+49
|
* * generic/tcl.decls: [TIP #357]: First round of changesKevin B Kenny2010-04-023-5/+46
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: to export Tcl_LoadFile, Tcl_FindSymbol, * generic/tclIOUtil.c: and Tcl_FSUnloadFile to the public API. * generic/tclInt.h: * generic/tclLoad.c: * generic/tclLoadNone.c: * generic/tclStubInit.c: * tests/fileSystem.test: * tests/load.test: * tests/unload.test: * unix/tclLoadDl.c: * unix/tclLoadDyld.c: * unix/tclLoadNext.c: * unix/tclLoadOSF.c: * unix/tclLoadShl.c: * unix/tclUnixPipe.c: * win/Makefile.in: * win/tclWinLoad.c:
* * library/reg/pkgIndex.tcl: [TIP #362]: Fixed first round ofKevin B Kenny2010-04-021-5/+5
| | | | | | * tests/registry.test: bugs resulting from the recent commits * win/tclWinReg.c: of changes in support of the referenced TIP.
* [FRQ 2974744]: share exception codes (ObjType?):nijtmans2010-03-313-17/+17
| | | | | | Revised test cases, making sure that abbreviated codes are checked resulting in an error, and checking for the exact error message.
* TIP #362 IMPLEMENTATIONdkf2010-03-301-4/+49
| | | | | | * win/tclWinReg.c: [Patch 2960976]: Apply patch from Damon Courtney to * tests/registry.test: allow the registry command to be told to work with both 32-bit and 64-bit registries.
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+4
| | | | * tests/result.test: that it rejects illegal non-list values.