summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclCmdIL.c (Tcl_LsortObjCmd): Fix crash when multiple -indexdkf2010-12-271-1/+4
| | | | options are used. Simplified memory handling logic.
* Make sure [fcopy -size ... -command ...] always calls the callback ↵ferrieux2010-12-101-1/+39
| | | | asynchronously, even for size zero.
* * tests/fCmd.test: Improve sanity of constraints now that we don'tdkf2010-12-091-22/+39
| | | | support anything before Windows 2000.
* * generic/tclCmdAH.c (TclInitFileCmd, TclMakeFileCommandSafe, ...):dkf2010-12-094-195/+169
| | | | | | | | | | | | | | | | | | Break up [file] into an ensemble. Note that the ensemble is safe in itself, but the majority of its subcommands are not. * generic/tclFCmd.c (FileCopyRename,TclFileDeleteCmd,TclFileAttrsCmd) (TclFileMakeDirsCmd): Adjust these subcommand implementations to work inside an ensemble. (TclFileLinkCmd, TclFileReadLinkCmd, TclFileTemporaryCmd): Move these subcommand implementations from tclCmdAH.c, where they didn't really belong. * generic/tclIOCmd.c (TclChannelNamesCmd): Move to more appropriate source file. * generic/tclEnsemble.c (TclMakeEnsemble): Start of code to make partially-safe ensembles. Currently does not function as expected due to various shortcomings in how safe interpreters are constructed. * tests/cmdAH.test, tests/fCmd.test, tests/interp.test: Test updates to take into account systematization of error messages.
* * tests/append.test, tests/appendComp.test: Clean up tests so thatdkf2010-12-092-108/+125
| | | | | they don't leave things in the global environment (detected when doing -singleproc testing).
* * tests/fCmd.test, tests/safe.test, tests/uplevel.test,dkf2010-12-075-348/+359
| | | | | * tests/upvar.test, tests/var.test: Convert more tests to tcltest2 and factor them to be easier to understand.
* 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-281-1/+802
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them.
* * tests/chanio.test, tests/iogt.test, tests/ioTrans.test: Convert moredkf2010-11-243-1303/+1373
| | | | tests to tcltest2 and factor them to be easier to understand.
* More conversion of tcltest1 tests to tcltest2dkf2010-11-211-483/+521
|
* * tests/chanio.test: Converted many tests to tcltest2 by marking thedkf2010-11-201-1172/+1328
| | | | setup and cleanup parts as such.
* [FRQ 491789]: "setargv() doesn't support a unicode cmdline"nijtmans2010-11-181-11/+3
| | | | | now implemented for cygwin and mingw32 too. No longer disable tests Tcl_Main-1.4 and 1.6 on Windows, because those now work on all supported platforms.
* * tests/oo.test: [Bug 3111059]: Added testing that neatly trapped thisdkf2010-11-181-1/+35
| | | | issue.
* * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-152-38/+159
| | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
* Clarify the tests so that what is being tested is in the body... :-)dkf2010-11-091-7/+10
|
* * tests/oo.test: Various tests for memory leaks.dkf2010-11-091-1/+35
|
* Revert previous commit at request of KBK.dkf2010-11-091-5/+1
|
* Added test case for [Bug #3105247] -NaN?nijtmans2010-11-091-1/+5
|
* some more speedups to socket.testrmax2010-11-042-6/+7
|
* avoid having to wait for some child processes to time out after all tests ↵rmax2010-11-041-1/+4
| | | | have been run
* Rework some of the tests to speed them up by avoiding (supposedly)rmax2010-11-041-29/+27
| | | | unneeded [after]s.
* reorder the constraint list per test for clearer make test output of skipped ↵rmax2010-11-041-35/+35
| | | | tests
* * tests/socket.test: Run the socket tests three times with thermax2010-11-041-154/+172
| | | | | | | | address family set to any, inet, and inet6 respectively. Use constraints to skip the tests if a family is found to be unsupported or not configured on the local machine. Adjust the tests to dynamically adapt to the address family that is being tested.
* * tests/error.test (error-19.13): Another variation on testing fordkf2010-11-041-1/+23
| | | | issues in [try] compilation.
* * generic/tclCmdMZ.c (TryPostBody): Ensure that errors when settingdkf2010-11-031-1/+45
| | | | | * tests/error.test (error-19.1[12]): message/opt capture variables get reflected properly to the caller.
* * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-1/+31
| | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
* Improved handling of non-standard module path lists, empty path lists in ↵stwo2010-11-021-2/+2
| | | | particular.
* * tests/http.test: Make http-4.15 pass in isolation [Bug 3097490]dgp2010-10-281-2/+2
|
* Coverage test for portion of ExprSqrtFunc()dgp2010-10-261-1/+5
|
* [Patch 2995655] Report inner contexts in [info errorstack]ferrieux2010-10-202-8/+8
|
* * generic/tclZlib.c (Tcl_ZlibStreamGet): [Bug 3081008]: Ensure thatdkf2010-10-191-1/+1
| | | | | | | | | | | | | | | when a bytearray gets its internals entangled with zlib for more than a passing moment, that bytearray will never be shimmered away. This increases the amount of copying but is simple to get right, which is a reasonable trade-off. * generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special cases so that most of the time when you build up a bytearray by appending, it actually ends up being a bytearray rather than shimmering back and forth to string. * tests/http11.test (check_crc): Use a simpler way to express the functionality of this procedure.
* [Bug 3085863]: tclUniData 9 years oldnijtmans2010-10-181-17/+17
| | | | Added testcases for Unicode 6.0
* * tests/winPipe.test: Test hygiene with makeFile and removeFile.dgp2010-10-061-11/+16
|
* * generic/tclCompile.c: Prevent writing to the intrep fields of adgp2010-10-061-1/+25
| | | | * tests/subst.test: freed Tcl_Obj. [Bug 3081065]
* * generic/tclExecute.c (TEBCresume): [Bug 3079830]: Added invalidationdkf2010-10-021-1/+7
| | | | of string representations of dictionaries in some cases.
* * doc/socket.n: Document the changes to the [socket] and rmax2010-09-282-123/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | [fconfiguyre] commands. * generic/tclInt.h: Introduce TclCreateSocketAddress() as a * generic/tclIOSock.c: replacement for the platform-dependent * unix/tclUnixSock.c: TclpCreateSocketAddress() functions. * unix/tclUnixChan.c: Extend the [socket] and [fconfigure] * unix/tclUnixPort.h: commands to behave as proposed in * win/tclWinSock.c: TIP #162. * win/tclWinPort.h: * compat/fake-rfc2553.c: A compat implementation of the APIs * compat/fake-rfc2553.h: defined in RFC-2553 (getaddrinfo() and friends) on top of the existing gethostbyname() etc. * unix/configure.in: Test whether the fake-implementation is * unix/tcl.m4: needed. * unix/Makefile.in: Add a compile target for fake-rfc2553. * win/configure.in: Allow cross-compilation by default * tests/socket.test: Improve the test suite to make more use of * tests/remote.tcl: randomized ports to reduce interference with tests running in parallel or other services on the machine.
* * tests/stringComp.test: improved string test coveragehobbs2010-09-251-167/+153
| | | | | | | * generic/tclExecute.c (TclExecuteByteCode): merge INST_STR_CMP and INST_STR_EQ/INST_STR_NEQ paths. Speeds up eq/ne/[string eq] with obj-aware comparisons and eq/==/ne/!= with length equality check.
* * tests/execute.test: added execute-10.3 for [Bug 3072640]. TheMiguel Sofer2010-09-221-1/+22
| | | | test causes a mem failure.
* * 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