summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * 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. FossilOrigin-Name: 6d28eb4724dd55abb224612e528c7144cd35472f
* * 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. FossilOrigin-Name: 405a405dc7b5e6d2cf699bce59de6867a313fa6f
* * generic/tclBasic.c: New implementation for [tailcall]:msofer2010-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. FossilOrigin-Name: c263c556adf1dd0e756a39cc73c0cbd7a80715e0
* * generic/tclBasic.c: Redesign of [tailcall] tomsofer2010-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: FossilOrigin-Name: beb3af88b5e286758fed136d9747338d89d5009d
* * library/safe.tcl (AliasGlob): [Bug 3004191]: Restore safe [glob] todkf2010-08-181-1/+8
| | | | | | working condition. FossilOrigin-Name: 77440fdac3e0c4fc3ca3cff8d246b516ec89aaac
* * 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. FossilOrigin-Name: 21917a8b91ccf446289ec30a27ddc692614190ea
* added test for yieldTomsofer2010-08-111-1/+15
| | | FossilOrigin-Name: 8305e33b3d30e43bfd5acf36122af964a3c831c0
* * generic/tclIORChan.c: [Bug 3034840]: Fixed reference countingandreas_kupries2010-08-041-1/+23
| | | | | | | * generic/tclIORTrans.c: in InvokeTclMethod and callers. * tests/ioTrans.test: FossilOrigin-Name: 8ae4ea3006c48d5154453b82fbecedb66d167afd
* Fix OBOE error in the forward ported info-39.1andreas_kupries2010-08-031-5/+5
| | | FossilOrigin-Name: f31da49a968cf4923c70355c0a0fb4b42fc82868
* Test iocmd-32.2 tests for Bug 3034840dgp2010-08-031-1/+14
| | | FossilOrigin-Name: 01ca2bd36f7039136af05998e43df2336e5ec503
* * tests/var.test (var-19.1): [Bug 3037525]: Added testandreas_kupries2010-08-031-1/+8
| | | | | | demonstrating the local hashtable deletion crash and fix. FossilOrigin-Name: 50ebd6a8c31a55d2ea90655db75ed8c533dcda53
* * 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. FossilOrigin-Name: a013847a01538bf48f90eb7c7616741ec2155785
* 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 FossilOrigin-Name: 11e51b4a9cf185c396dd66d27519060e5e3198db
* D'oh!dkf2010-07-051-2/+2
| | | FossilOrigin-Name: 8a6919bd059ac73530bac490543656e1a056199d
* Add a little emacs magicdkf2010-07-041-5/+7
| | | FossilOrigin-Name: 728058012db8fdc6ff8f5df24ead62314a02e570
* * 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. FossilOrigin-Name: 3e4f0698cfa71c8dbea8d5505cc4729deb493514
* prevent a race condition when shutting down the remote test serverrmax2010-06-251-3/+2
| | | FossilOrigin-Name: ff37c169a8194ab553be2e2615cc37ba3ba7ef56
* * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-222-2/+2
| | | | | | args message. FossilOrigin-Name: 58d3c6b6a588962e01bd8ecff7ec71612e621cc4
* Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-022-6/+6
| | | | | offsets no longer overestimated. FossilOrigin-Name: 5c19ed1d60ae9cc45d6b846d8692fe7ed8ab47a0
* Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-312-6/+6
| | | | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch. FossilOrigin-Name: 7bf546d17188d20dd4ecbbe06070a8395d339fc2
* Fix filesystem-5.1 test failure on CYGWINnijtmans2010-05-311-1/+1
| | | FossilOrigin-Name: 500e9cc4ee39a8b4dee386b7f6ce47acc629fb2d
* * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions): [3007374]:dkf2010-05-281-1/+18
| | | | | | | Corrected error in handling of catch contexts to prevent crash with chained handlers. FossilOrigin-Name: 02d7474963773e4d61152d99867b37481309cafd
* optParse.tcl: eliminate ';' at line end, bump to v0.4.6nijtmans2010-05-271-2/+2
| | | FossilOrigin-Name: 426aabe4096302175cf1b8631bfccc1ce04561f8
* optParse.tcl: Don't generate spaces at the end of a line.nijtmans2010-05-272-26/+26
| | | FossilOrigin-Name: 15e1c57545e1ecb81b533c92f6a8e0cad0214173
* Also check the reverse path of dict->list EIAS violation.ferrieux2010-05-201-1/+2
| | | FossilOrigin-Name: 22814f544a94af6164c6823456b4adbb7bb31752
* 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. FossilOrigin-Name: c054dd492af5dc783366600ba25079fdd6ca890d
* 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. FossilOrigin-Name: a822ad9b51af948ab27d55cec82b95864f3f53ba
* * tests/coroutine.test: testing coroutine arguments after [yield]:msofer2010-04-301-1/+26
| | | | | | check that only 0/1 allowed FossilOrigin-Name: 6772c1330f986c4e19cb87fe3be2e7a8bb756c6e
* * 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. FossilOrigin-Name: 79caf5084b4826446d4858236d62fdf45c982a76
* TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-056-15/+49
| | | FossilOrigin-Name: 43fe3048397d3a082c8a3c34f0cd6875f4350dd3
* * generic/tcl.decls: [TIP #357]: First round of changeskennykb2010-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: FossilOrigin-Name: 80aa157f455c7e777a532f7a3fd791d38359f31d
* * library/reg/pkgIndex.tcl: [TIP #362]: Fixed first round ofkennykb2010-04-021-5/+5
| | | | | | | | * tests/registry.test: bugs resulting from the recent commits * win/tclWinReg.c: of changes in support of the referenced TIP. FossilOrigin-Name: dd10b0cf0b544407debfa73b92bf3d74beaff7a0
* [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. FossilOrigin-Name: 8a5a22ad19487fa1fa9e96c539fc053111ab3a78
* 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. FossilOrigin-Name: 3606e1e39c84e93ca80cab33a8388ecfd6f11eb6
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+4
| | | | | | * tests/result.test: that it rejects illegal non-list values. FossilOrigin-Name: 7cdddeb2828c3f51badeb27c6a18737537856702
* * generic/tclOOInfo.c (InfoObjectMethodTypeCmd)dkf2010-03-241-7/+9
| | | | | | | (InfoClassMethodTypeCmd): Added introspection of method types so that it is possible to find this info out without using errors. FossilOrigin-Name: 2b08d450001dec4fc952370bd7527b8987c81576
* * tests/async.test (async-4.*): Reduce obscurity of these tests bydkf2010-03-241-36/+32
| | | | | | | putting the bulk of the code for them inside the test body with the help of [apply]. FossilOrigin-Name: 4edcf391c7061908c09f5b7001468931d9d3fa35
* Make error message in "try" implementationnijtmans2010-03-231-3/+3
| | | | | | exactly the same as the one in "return" FossilOrigin-Name: bd5b3c5b0942c7c64c789ab5cde8150153799cf3
* * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-181-1/+25
| | | | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669]. FossilOrigin-Name: d368f281354e8c4a363f1407f7e546a68b14c8cb
* Fix silly error in bytecode generation for [try].dkf2010-03-181-6/+55
| | | FossilOrigin-Name: b4a8de2746abb6b86c97b409961d5491c0341553
* [Bug 2971921]: Corrected jump so that it doesn't skip into the middledkf2010-03-181-1/+23
| | | | | | | of an instruction! Tightened the instruction issuing. Moved endCatch calls closer to their point that they guard. FossilOrigin-Name: 77164c4ac7a7d5516b63469b640dbf00a7d70f47
* * generic/tclIORTrans.c (ReflectInput, ReflectOutput,andreas_kupries2010-03-171-2/+91
| | | | | | | | | | | | | | | ReflectSeekWide): [Bug 2921116]: Added missing TclEventuallyFree calls for preserved ReflectedTransform* structures. Reworked ReflectInput to preserve the structure for its whole life, not only in InvokeTclMethod. * generic/tclIO.c (Tcl_GetsObj): [Bug 2921116]: Regenerate topChan, may have been changed by a self-modifying transformation. * tests/ioTrans/test (iortrans-4.8, iortrans-4.9, iortrans-5.11, iortrans-7.4, iortrans-8.3): New test cases. FossilOrigin-Name: 366cd619ab221aa92e8805f57b082e5efa113995
* * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieuxandreas_kupries2010-03-091-1/+77
| | | | | | | | * doc/refchan.n: <ferrieux@users.sourceforge.net> for debugging and fixing * tests/ioCmd.test: the problem. It is the write-side equivalent to the bug fixed 2009-08-06. FossilOrigin-Name: 294dac0871130fd1951a62e601ab514e5db3634f
* Fix [Bug 2962664] by forcing oo::object deletion on oo::class deletion.dkf2010-03-041-1/+25
| | | FossilOrigin-Name: b1e964413ea1920263f3ab66418d70fce6f27cd4
* Added test case for empty table in ::prefixferrieux2010-03-011-1/+4
| | | FossilOrigin-Name: ec977bbd3bb508affcfd3442850b877df0fc7fbd
* [Bug 2818131] further tests added to cover use of mismatched zlib algorithmspatthoyts2010-02-261-2/+76
| | | | | | | | Using zlib gzip to write and inflate to read from a channel where gets was also used for reading data was causing a crash. This has been fixed by Andreas' last commit. FossilOrigin-Name: dd2bad021252743fe32fcd5ca6a8811e1addb3ed
* Fix some nasties with handling duplicate keys in list->dict->list conversions.dkf2010-02-241-3/+15
| | | FossilOrigin-Name: 72dc5b9bbc7d9587c76f9eb277d2ab5fed357c69
* Follow-up to Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+13
| | | | | | | | Some more tests, showing that the LONG implementation was not quite correct too, and a fix for that. Some more internal "const" additions FossilOrigin-Name: 4a0630650d0b3a477b4fd01121b715e40d2201b7
* * tests/regexp.test: Add test cases back ported frommdejong2010-02-211-1/+111
| | | | | | Jacl regexp work. FossilOrigin-Name: fdacdda25298e3e3271c7afe82d0e6c1b0813e66
* Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+7
| | | | | | and added test cases for it. FossilOrigin-Name: 67fb2f3118caf891b80317f38d22210fb1b0b119