summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * library/http/http.tcl (http::geturl): add -method option to supporthobbs2008-03-121-2/+2
| | | | | * tests/http.test (http-3.1): http PUT and DELETE requests. * doc/http.n: [Bug 1599901, 862554]
* improve darwin9 constraintdas2008-03-121-2/+3
|
* * macosx/GNUmakefile: fix quoting to allow paths todas2008-03-111-4/+4
| | | | | | | | | | | | * macosx/Tcl-Common.xcconfig: ${builddir} and ${INSTALL_ROOT} * unix/Makefile.in: to contain spaces. * unix/configure.in: * unix/install-sh: * unix/tcl.m4: * tests/ioCmd.test: * unix/Makefile.in (install-strip): strip non-global symbols from dynamic library.
* * tests/exec.test (exec-9.7): reduce timing sensitivitydas2008-03-112-4/+5
| | | | * tests/socket.test (socket-2.11): (esp. on multi-proc machines).
* * tests/fCmd.test (fCmd-9.4): skip on Darwin 9 (xfail).das2008-03-111-2/+6
|
* * generic/tclVar.c (TclDeleteNamespaceVars):Miguel Sofer2008-03-111-1/+17
| | | | | | | * tests/var.test (var-8.2): unset traces on vars should be called with a FQ named during namespace deletion. This was causing infinite loops when unset traces recreated the var, as reported by Julian Noble on [Bug 1911919].
* * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Added errordgp2008-03-101-1/+64
| | | | | * tests/event.test (event-5.*): checking to protect against callers passing invalid return options dictionaries. [Bug 1901113]
* * generic/tclBasic.c (ExprAbsFunc): Revised so that the abs()dgp2008-03-101-1/+19
| | | | | | * tests/expr.test: function and the [::tcl::mathfunc::abs] command do not return the value of -0, or equivalent values with more alarming string reps like -1e-350. [Bug 1893815].
* * tests/execute.test (execute-6.*): More tests checking thatdgp2008-03-071-17/+97
| | | | script bytecode is invalidated in the right situations.
* * tests/execute.test (execute-6.*): More tests checking thatdgp2008-03-071-2/+81
| | | | script bytecode is invalidated in the right situations.
* * tests/execute.test (6.3,4): Added tests for Bug 1899164].dgp2008-03-041-1/+19
|
* test added (did not fail previously, just to make sure it never does)Miguel Sofer2008-03-021-1/+18
|
* * doc/clock.n: Corrected minor indentation gaffe in theKevin B Kenny2008-02-271-1/+37
| | | | | | | | | | | | penultimate paragraph. [Bug 1898025] * generic/tclClock.c (ParseClockFormatArgs): Changed to check that the clock value is in the range of a 64-bit integer. [Bug 1862555] * library/clock.tcl (::tcl::clock::format, ::tcl::clock::scan, ::tcl::clock::add, ::tcl::clock::LocalizeFormat): Fixed bugs in caching of localized strings that caused weird results when localized date/time formats were used. [Bug 1902423] * tests/clock.test (clock-61.*, clock-62.1): Regression tests for [Bug 1862555] and [Bug 1902423].
* * generic/tclUtil.c (TclReToGlob): fix the handling of the lasthobbs2008-02-261-0/+16
| | | | | * tests/regexpComp.test: star possibly being escaped in determining right anchor. [Bug 1902436]
* add missing constraintdgp2008-02-131-2/+4
|
* eliminate duplicate test namesdgp2008-02-132-4/+4
|
* Fix [Bug 1891827]dkf2008-02-121-1/+7
|
* * generic/tclClock.c (ClockParseformatargsObjCmd):Kevin B Kenny2008-02-061-3/+7
| | | | | | | | | | * library/clock.tcl (::tcl::clock::format): * tests/clock.test (clock-1.0, clock-1.4): Performance enhancements in [clock format] (moving the analysis of $args into C code, holding on to Tcl_Objs with resolved command names, [lassign] in place of [foreach], avoiding [namespace which] for command resolution).
* * generic/tclCmdIl.c (Tcl_LreverseObjCmd):Miguel Sofer2008-01-221-1/+4
| | | | | * tests/cmdIL.test (cmdIL-7.7): fix crash on reversing an empty list [Bug 1876793].
* test for memory leakdgp2008-01-161-1/+20
|
* * generic/tclStringObj.c (Tcl_AppendFormatToObj): Correct failure todgp2008-01-101-1/+5
| | | | | * tests/format.test: account for big.used == 0 corner case in the %ll(idox) format directives. [Bug 1867855].
* * generic/tclCompCmds.c (TclCompileRegexpCmd): TCL_REG_NOSUB cannothobbs2007-12-232-1/+16
| | | | | * tests/regexp.test (regexp-22.2): be used because it * tests/regexpComp.test: [Bug 1857126] disallows backrefs.
* * generic/tclCmdIL.c: speed patch for lsort [Patch 1856994].Miguel Sofer2007-12-231-1/+4
|
* * generic/tclCompCmds.c (TclCompileSwitchCmd): update switch -regexphobbs2007-12-191-1/+36
| | | | | | * tests/switch.test-14.*: compilation to pass the cflags to INST_REGEXP (changed on 12-07). Added tests for switch -regexp compilation (need more). [Bug 1854399]
* Fixes for problems created when processing regular expressions thatdkf2007-12-181-1/+10
| | | | | | | generate very large automata. An enormous number of thanks to Will Drewry <wad@google.com>, Tavis Ormandy <taviso@google.com>, and Tom Lane <tgl@sss.pgh.pa.us> from the Postgresql crowd for their help in tracking these problems down. [Bug 1810264]
* Fix for broken test on win2k with long machine namepatthoyts2007-12-141-2/+5
|
* merge stable branch onto HEADdgp2007-12-1344-44/+44
|
* * generic/tclInt.decls: move TclByteArrayMatch and TclReToGlobhobbs2007-12-111-1/+61
| | | | | | | | | | | | | * generic/tclIntDecls.h: to tclInt.h from stubs. * generic/tclStubInit.c: Add flags var to TclByteArrayMatch for * generic/tclInt.h: future extensibility * generic/tcl.h: define TCL_MATCH_EXACT doc for Tcl_StringCaseMatch. * doc/StrMatch.3: It is compatible with existing usage. * generic/tclExecute.c (INST_STR_MATCH): flag for TclByteArrayMatch * generic/tclUtil.c (TclByteArrayMatch, TclStringMatchObj): * generic/tclRegexp.c (Tcl_RegExpExecObj): * generic/tclCmdMZ.c (StringMatchCmd): Use TclStringMatchObj * tests/string.test (11.9.* 11.10.*): more tests
* * tests/io.test, tests/chanio.test (io-73.1): Make sure to invalidatehobbs2007-12-092-2/+12
| | | | | * generic/tclIO.c (SetChannelFromAny): internal rep only after validating channel rep. [Bug 1847044]
* Forgot to adjust tests to take into account safeness of [unload]dkf2007-12-081-3/+3
|
* * tests/stack.test: made the tests for stack overflow not careMiguel Sofer2007-12-051-5/+22
| | | | | about which mechanism caused the error (interp's recursion limit or C-stack depth detector).
* Prevent shimmering crash in [lsearch] when -exact and -integer/-real are mixed.dkf2007-12-051-1/+10
| | | | [Bug 1844789]
* Make two-arg switch work reliably (and actually as documented!) [Bug 1836519]dkf2007-12-031-187/+180
|
* Extra channel tests to check for no -eofcharpatthoyts2007-11-281-1/+10
|
* * doc/chan.n: "Fix" the limitation on channel -eofchardgp2007-11-271-1/+7
| | | | | | | * doc/fconfigure.n: values to single byte characters by documenting * generic/tclIO.c: it and making it fail loudly. Thanks to * tests/chan.test: Stuart Cassoff for contributing the fix. [Bug 800753]
* * generic/tclIORChan.c: Fixed a problem with reflectedandreas_kupries2007-11-241-3/+3
| | | | | | | | | | | | | | | | | | channels. 'chan postevent' is defined to work only from within the interpreter containing the handler command. Sensible, we want only handler commands to use it. It identifies the channel by handle. The channel moves to a different interpreter or thread. The interpreter containing the handler command doesn't know the channel any longer. 'chan postevent' fails, not finding the channel any longer. Uhm. Fixed by creating a second per-interpreter channel table, just for reflected channels, where each interpreter remembers for which reflected channels it has the handler command. This info does not move with the channel itself. The table is updated by 'chan create', and used by 'chan postevent'. * tests/ioCmd.test: Updated the testsuite.
* * generic/tclVar.c (Tcl_ArrayObjCmd): handle the right data forhobbs2007-11-231-1/+5
| | | | * tests/var.test (var-14.2): [array names $var -glob $ptn]
* Turn the [string] command into a real compiled ensemble.dkf2007-11-232-8/+8
|
* Rebuild [dict] as a full compiled ensemble.dkf2007-11-221-3/+3
|
* Flag shimmering bug found in [string range].dkf2007-11-221-1/+6
|
* * generic/tclDictObj.c: Changed the underlying implementation of thedkf2007-11-203-28/+39
| | | | | | | | | hash table used in dictionaries to additionally keep all entries in the hash table in a linked list, which is only ever added to at the end. This makes iteration over all entries in the dictionary in key insertion order a trivial operation, and so cleans up a great deal of complexity relating to dictionary representation and stability of iteration order.
* Fix accidentally damaged testsdkf2007-11-191-13/+5
|
* Greatly improved ensemble compiler. This one now can handle any ensemble.dkf2007-11-162-4/+4
| | | | | It is usually not enabled though; only worth it when a subcommand is actually expected to undergo bytecode compilation.
* * generic/regc_nfa.c: Fixed infinite loop in the regexp compiler.dgp2007-11-151-1/+6
| | | | [Bug 1810038].
* * tests/chanio.test: New file. This is essentially a duplicate ofandreas_kupries2007-11-142-2/+7465
| | | | | | 'io.test', with all channel commands converted to their 'chan xxx' notation. * tests/io.test: Fixed typo in test description.
* Make some tests clearer on failure by using tcltest2 featuresdkf2007-11-131-22/+16
|
* * generic/tclCompCmds.c, generic/tclCompile.c, generic/tclCompile.h:hobbs2007-11-121-0/+76
| | | | | | | | | * generic/tclExecute.c, generic/tclInt.decls, generic/tclIntDecls.h: * generic/tclRegexp.c, generic/tclRegexp.h: Add INST_REGEXP and fully * generic/tclStubInit.c, generic/tclUtil.c: compiled [regexp] for the * tests/regexpComp.test: [Bug 1830166] simple cases. Also added TclReToGlob function to convert RE to glob patterns and use these in the possible cases.
* * generic/tclTest.c (TestSetCmd2):Miguel Sofer2007-11-031-1/+8
| | | | | | | * generic/tclVar.c (TclObjLookupVarEx): * tests/set.test (set-5.1): fix error branch when array name looks like array element (code not normally exercised). x
* \u0000 is ASCII! [Bug 1808258]dkf2007-11-011-4/+4
|
* * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-1516-135/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | zero strings passed as the "permissions" argument as octal numbers, even if Tcl itself no longer parses integers in that way. * unix/tclUnixFCmd.c: Revise the "-permissions" [file attribute] so that it interprets leading zero strings as octal numbers, even if Tcl itself no longer parses integers in that way. * generic/tclCompExpr.c: Corrections to code that produces * generic/tclUtil.c: extended "bad octal" error messages. * tests/cmdAH.test: Test revisions so that tests pass whether or * tests/cmdIL.test: not Tcl parses leading zero strings as octal. * tests/compExpr-old.test: * tests/compExpr.test: * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/incr.test: * tests/io.test: * tests/lindex.test: * tests/link.test: * tests/mathop.test: * tests/parseExpr.test: * tests/set.test: * tests/string.test: * tests/stringComp.test: