summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * tests/ioCmd.test: Extended testsuite for reflected channelandreas_kupries2008-04-241-1/+178
| | | | | | | | | | implementation. Added test cases about how it handles if the rug is pulled out from under a channel (= killing threads, interpreters containing the tcl command for a channel, and channel sitting in a different interpreter/thread.) * generic/tclIORChan.c: Fixed the bugs exposed by the new testcases, redone most of the cleanup and exit handling.
* * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-152-2/+82
| | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, * chanio.test (chan-io-53.8a): to shift EOF handling to the async part of the command if a callback is specified, should the channel be at EOF already when fcopy is called. Testcase by myself.
* * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):Kevin B Kenny2008-04-141-1/+9
| | | | | Added comments to the test that it can fail on a heavily loaded system.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-103-13/+75
| | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
* * tests/chanio.test (chan-io-52.5): Removed '-size -1' from test,andreas_kupries2008-04-092-4/+4
| | | | | * tests/io.test (io-52.5): does not seem to have any bearing, and was an illegal value.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -sizeandreas_kupries2008-04-091-1/+7
| | | | | | | | * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic patch by Alexandre Ferrieux <ferrieux@users.sourceforge.net>, with modifications from me to separate overflow from true negative value. Extended testsuite.
* * tests/io.test (io-53.8): Fixed ordering of vwait and afterandreas_kupries2008-04-081-2/+2
| | | | cancel. cancel has to be done after the vwait completes.
* * tests/chanio.test (chan-io-53.8,53.9,53.10): fix typo & quoting fordas2008-04-082-8/+8
| | | | * tests/io.test (io-53.8,53.9,53.10): spaces in builddir path
* Corrected test name.andreas_kupries2008-04-071-2/+2
|
* * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-072-2/+142
| | | | | | | | * tests/chanio.test: * generic/tclIO.c: Additional changes to data structures for fcopy * generic/tclIO.h: and channels to perform proper cleanup in case of a channel having two background copy operations running as is now possible.
* * generic/tclStringObj.c (Tcl_AppendFormatToObj):dgp2008-04-071-1/+7
| | | | | | Fix [format {% d}] so that it behaves the same way as in 8.4 and as C's printf(). * tests/format.test: Add a test for '% d' and '%+d'.
* * tests/chanio.test (chan-io-53.9):Kevin B Kenny2008-04-062-6/+9
| | | | | | | | | | | * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. * win/tcl.m4: Added -D_CRT_SECURE_NO_DEPRECATE and -DCRT_NONSTDC_NO_DEPRECATE to the MSVC compilation flags so that the compilation doesn't barf on perfectly reasonable Posix system calls. * win/configure: Manually patched (don't have the right autoconf to hand).
* * tests/io.test (io-53.9): Added testcase for [Bug 780533], basedandreas_kupries2008-04-042-6/+102
| | | | | | * tests/chanio.test: on Alexandre's test script. Also fixed problem with timer in preceding test, was not canceled properly in the ok case.
* * generic/tclIORChan.c (ReflectOutput): Allow zero return fromandreas_kupries2008-04-041-2/+2
| | | | | | | | write when input was zero-length anyway. Otherwise keept it an error, and separate the message from 'written too much'. * tests/ioCmd.test (iocmd-24.6): Testcase updated for changed message.
* * generic/tclIORChan.c (ReflectClose): Added missing removal ofandreas_kupries2008-04-041-1/+13
| | | | | | | | | the now closed channel from the reflection map. Before we could crash the system by invoking 'chan postevent' on a closed reflected channel, dereferencing the dangling pointer in the map. * tests/ioCmd.test (iocmd-31.8): Testcase for the above.
* * generic/tclIO.c (CopyData): Applied patch [Bug 1932639] toandreas_kupries2008-04-032-2/+92
| | | | | | * tests/io.test: prevent fcopy from calling -command synchronously * tests/chanio.test: the first time. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for report and patch.
* merge updates from HEAD dgp2008-03-311-3/+3
|
* Rewrite to use tcltest2 better while getting rid of bugs/misfeatures.dkf2008-03-281-971/+1084
|
* Removed duplicated testspatthoyts2008-03-241-7/+1
|
* bug #1923966 - crash in binary format. Added tests for the above crash ↵patthoyts2008-03-241-1/+19
| | | | condition.
* Added more tests of regexp-mode compilation of the [switch] command. [Bug ↵dkf2008-03-211-1/+107
| | | | 1854435]
* Added workaround for [Bug 1905562]dkf2008-03-191-2/+3
|
* Correct the handling of stack space calculation (the jump pattern used wasdkf2008-03-161-1/+8
| | | | confusing the simple-minded code doing the calculations). [Bug 1903325]
* Update test for corrected error messagedgp2008-03-141-2/+2
|
* * unix/Makefile.in (install-libraries): Bump http to 2.7hobbs2008-03-121-8/+8
| | | | | | | | | | | | * win/Makefile.in (install-libraries): Added -myaddr option to allow * library/http/http.tcl (http::geturl): control of selected socket * library/http/pkgIndex.tcl: interface. [Bug 559898] * doc/http.n, tests/http.test: Added -keepalive and -protocol 1.1 with chunked transfer encoding support. [Bug 1063703, 1470377, 219225] Added ability to override Host in -headers. [Bug 928154] Added -strict option to control URL validation on per-call basis. [Bug 1560506]
* * 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]