summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Implemented TIP #124 (clock clicks -microseconds and Tcl_WideInt Kevin B Kenny2003-04-122-52/+83
| | | | | | return values). Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability.
* * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Correcteddgp2003-04-111-1/+17
| | | | | | | | inconsistent results of [string is integer] observed on systems where sizeof(long) != sizeof(int). [Bug 718878] * tests/string.test: Added tests for Bug 718878. * doc/string.n: Clarified that [string is integer] accepts 32-bit integers.
* fix 5 small filesystem bugs, and some typosvincentdarley2003-04-117-25/+125
|
* Fixed bugs 715751 and 713562 so dict code should build everywhere and wide intsdkf2003-04-071-1/+9
| | | | be defined (though not necessarily useful) everywhere.
* The bulk of the TIP#111 implementation. Still need to finish plumbing thisdkf2003-04-051-0/+706
| | | | into the rest of the core, but that won't take long...
* * tests/README: Direct [source] of *.test files is no longerdgp2003-04-011-21/+40
| | | | | recommended. The tests/*.test files should only be evaluated under the control of the [runAllTests] command in tests/all.tcl.
* Added further coverage tests.dgp2003-04-011-1/+41
|
* * generic/tclExecute.c (INST_RETURN): Bytecompiled [return] faileddgp2003-04-011-2/+4
| | | | | | to reset iPtr->returnCode, causing tests parse-18.17 and parse-18.21 to fail strangely. * tests/parse.test (parse-18.21): Corrected now functioning test.
* * tests/parse.test (parse-18.*): Coverage tests for the newdgp2003-03-311-1/+68
| | | | | implementation of Tcl_SubstObj(). Note that tests parse-18.17 and parse-18.21 demonstrate some bugs left to fix in the current code.
* Altered test numers to eliminate duplicates, [Bugs 710313, 710320, 710352]Miguel Sofer2003-03-273-46/+46
|
* More elimination of dup test numbers [Bugs 710365, 710369]dkf2003-03-274-27/+17
|
* Eliminated duplicate test numbers [Bugs 710322, 710327, 710349, 710363]dkf2003-03-279-149/+82
|
* * library/tcltest/tcltest.tcl: Added reporting duringdgp2003-03-261-2/+2
| | | | | | | | [configure -debug 1] operations to warn about multiple uses of the same test name. [FR 576693] * tests/msgcat.test (msgcat-2.2.1): changed test name to avoid duplication. [Bug 710356]
* * generic/tclVar.c:Miguel Sofer2003-03-241-1/+11
| | | | | * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the created local variable, bugs #631741 and #696893.
* * win/tclWinDde.c: Make dde services conform the the documentationpatthoyts2003-03-221-5/+12
| | | | | | | | | such that giving only a topic name really returns all services with that topic. [Bug 219155] Prevent hangup caused by dde server applications failing to process messages [Bug 707822] * tests/winDde.test: Corrected labels and added a test for search by topic name.
* * generic/tclCompile.c:Miguel Sofer2003-03-191-1/+11
| | | | | * tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE [Bug 705406] (Don Porter).
* * generic/tclCompCmds.c (TclCompileReturnCmd): Alternative fix fordgp2003-03-191-2/+2
| | | | | | | * generic/tclCompile.c (INST_RETURN): [Bug 633204] that uses a new * generic/tclCompile.h (INST_RETURN): bytecode INST_RETURN to * generic/tclExecute.c (INST_RETURN): properly bytecode the [return] command to something that returns TCL_RETURN.
* revised latest registry test commitdgp2003-03-191-10/+4
|
* * tests/registry.test: Changed the conditionals to avoid an Kevin B Kenny2003-03-191-8/+10
| | | | | abort if [testlocale] is missing, as when running the test in tclsh rather than tcltest. [Bug #705677]
* * tests/format.test: Renumber tests, a bunch ofmdejong2003-03-181-9/+9
| | | | tests all had the same id.
* * generic/tclCmdAH.c (Tcl_FormatObjCmd): Only add the modifierdkf2003-03-141-1/+4
| | | | | | that indicates we've got a wide int when we're formatting in an integer style. Stops some libc's from going mad. [Bug #702622] Also tidied whitespace.
* * generic/tclBasic.c (Tcl_EvalTokensStandard):dgp2003-03-131-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (Tcl_SubstObj): * generic/tclCompCmds.c (TclCompileSwitchCmd): * generic/tclCompExpr.c (CompileSubExpr): * generic/tclCompile.c (TclSetByteCodeFromAny,TclCompileScript, TclCompileTokens,TclCompileCmdWord): * generic/tclCompile.h (TclCompileScript): * generic/tclExecute.c (TclCompEvalObj): * generic/tclInt.h (Interp,TCL_BRACKET_TERM,TclSubstTokens): * generic/tclParse.c (ParseTokens,Tcl_SubstObj,TclSubstTokens): * tests/subst.test (2.4, 8.7, 8.8, 11.4, 11.5): Substantial refactoring of Tcl_SubstObj to make use of the same parsing and substitution procedures as normal script evaluation. Tcl_SubstObj() moved to tclParse.c. New routine TclSubstTokens() created in tclParse.c which implements all substantial functioning of Tcl_EvalTokensStandard(). TclCompileScript() loses its "nested" argument, the Tcl_Interp struct loses its termOffset field and the TCL_BRACKET_TERM flag in the evalFlags field, all of which were only used (indirectly) by Tcl_SubstObj(). Tests subst-8.7,8.8,11.4,11.5 modified to accomodate the only behavior change: reporting of parse errors now takes precedence over [return] and [continue] exceptions. All other behavior should
* * generic/tclInterp.c (Tcl_InterpObjCmd): Corrected optiondgp2003-03-121-2/+5
| | | | | parsing beyond objc for [interp create --]. Thanks to Marco Maggi. [Bug 702383]
* * tests/io.test:mdejong2003-03-072-32/+35
| | | | | | | * tests/ioCmd.test: Define a fcopy constraint and add it to the constraint list of any test that depends on the fcopy command. This is only useful to Jacl which does not support fcopy.
* * tests/encoding.test: Name temp files *.tcltestoutmdejong2003-03-071-5/+5
| | | | | | instead of *.out so that when they are removed later, we don't accidently toast any files named *.out that the user has created in the build directory.
* * tests/io.test: Doh! Undo accidental commentingmdejong2003-03-071-6/+1
| | | | out of a couple of tests.
* * tests/io.test: Define a fileevent constraint and addmdejong2003-03-071-71/+72
| | | | | | it to the constraint list of any test that depends on the fileevent command. This is only useful to Jacl which does not support fileevent.
* * tests/io.test: Define an openpipe constraint and addmdejong2003-03-071-60/+66
| | | | | | it to the constraint list of any test that creates a pipe using the open command. This is only useful to Jacl which does not support pipes.
* * generic/TclUtf.c (Tcl_UniCharNcasecmp): Corrected failure todgp2003-03-061-2/+36
| | | | | * tests/utf.test (utf-25.*): properly compare Unicode strings of different case in a case insensitive manner. [Bug 699042]
* * generic/tclIO.c (Tcl_SetChannelOption):mdejong2003-03-061-2/+2
| | | | | | | | | | | | | Invoke the Tcl_SetChannelBufferSize method as a result of changing the -buffersize option to fconfigure. The previous implementation used some inlined code that reset the buffer size to the default size instead of ignoring the request as implemented in Tcl_SetChannelBufferSize. * tests/io.test: Update test case so that it actually checks the implementation of Tcl_SetChannelBufferSize.
* The [switch] command is now bytecode compiled, at least in the most commondkf2003-03-051-1/+129
| | | | | case. There's room for improvement in the future, of course. [Patch #644819] Also adds another macro to help with jump offset fixups.
* * README: Bumped version number ofdgp2003-03-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: Tcl to 8.5a0. * library.init.tcl: * mac/README: * macosx/Tcl.pbproj/project.pbxproc: * tests/basic.test: * tools/configure.in: * tools/tcl.hpj.in: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/README.binary: * win/configure.in: * win/makefile.bc: * win/makefile.vc: * win/tcl.m4: * tools/configure: autoconf * unix/configure: * win/configure:
* * tests/winTime.test: added note about PCI hardware dependencyhobbs2003-02-271-1/+3
| | | | issues with high performance clock.
* Stop [lsearch -start 0 {} x] from crashing. [Bug #694232]dkf2003-02-271-1/+5
|
* * tests/pid.test: See below [Bug #678412].andreas_kupries2003-02-252-10/+10
| | | | * tests/io.test: Made more robust against spaces in paths [Bug #678400].
* * tests/execute.test: cleaning up testobj's at the end, to avoidMiguel Sofer2003-02-251-1/+4
| | | | leak warning by valgrind.
* Stopped sign-bit propagation in [binary scan] of wide values. [Bug #690774]dkf2003-02-211-1/+9
|
* * generic/tclEncoding.c (LoadTableEncoding):hobbs2003-02-211-1/+131
| | | | | | | | | * library/encoding/cp932.enc: Correct jis round-trip encoding * library/encoding/euc-jp.enc: by adding 'R' type to .enc files. * library/encoding/iso2022-jp.enc: [Patch #689341] (koboyasi, taguchi) * library/encoding/jis0208.enc: * library/encoding/shiftjis.enc: * tests/encoding.test:
* * generic/tclStringObj.c: restored Tcl_SetObjLength() side-effectdas2003-02-191-2/+2
| | | | | | | | | | | | | | | | | | | of always invalidating unicode rep (if the obj has a string rep). Added hasUnicode flag to String struct, allows decoupling of validity of unicode rep from buffer size allocated to it (improves memory allocation efficiency). [Bugs #686782, #671138, #635200] * macosx/Tcl.pbproj/project.pbxproj: * macosx/Makefile: reworked embedded build to no longer require relinking but to use install_name_tool instead to change the install_names for embedded frameworks. * macosx/Tcl.pbproj/project.pbxproj: preserve mod dates when running 'make install' to build framework (avoids bogus rebuilds of dependent frameworks because tcl headers appear changed). * tests/ioCmd.test (iocmd-1.8): fix failure when system encoding is utf-8: use iso8859-1 encoding explicitly.
* * generic/tclCompile.c (TclCompileExprWords): remove unusedMiguel Sofer2003-02-191-2/+2
| | | | | | | | | variable "range" [Bug 664743] * generic/tclExecute.c (ExprSrandFunc): remove unused variable "result" [Bug 664743] * generic/tclStringObj.c (UpdateStringOfString): remove unused variable "length" [Bug 664751] * tests/execute.test (execute-7.30): fix for [Bug 664775]
* * generic/tclExecute.c (TclExecuteByteCode INST_STR_MATCH):hobbs2003-02-182-3/+82
| | | | | | | | | | | | * generic/tclCmdMZ.c (Tcl_StringObjCmd STR_MATCH): * generic/tclUtf.c (TclUniCharMatch): * generic/tclInt.decls: add private TclUniCharMatch function that * generic/tclIntDecls.h: does string match on counted unicode * generic/tclStubInit.c: strings. Tcl_UniCharCaseMatch has the * tests/string.test: failing that it can't handle strings or * tests/stringComp.test: patterns with embedded NULLs. Added tests that actually try strings/pats with NULLs. TclUniCharMatch should be TIPed and made public in the next minor version rev.
* Removed Windows line terminators. [Bug 687913].Kevin B Kenny2003-02-171-326/+326
|
* Don Porter's fix for bad parsing of nested scripts [Bug 681841].Miguel Sofer2003-02-166-15/+34
|
* Fixed Tcl_DeleteEvents not to get a pointer smash when deleting the Kevin B Kenny2003-02-151-0/+326
| | | | | | | last event in the queue. Added test code in 'tcltest' and a new file of test cases 'notify.test' to exercise this functionality; several of the new test cases fail for the original code and pass for the corrected code.
* * win/tclWinTime.c: Added code to test and compensate for forward Kevin B Kenny2003-02-141-14/+11
| | | | | | | | | | | | | | | leaps of the performance counter. See the MSDN Knowledge Base article Q274323 for the hardware problem that makes this necessary on certain machines. * tests/winTime.test: Revised winTime-2.1 - it had a tolerance of thousands of seconds, rather than milliseconds. (What's six orders of magnitude among friends? Both the above changes are triggered by a problem reported at http://aspn.activestate.com/ASPN/Mail/Message/ActiveTcl/1536811 although the developers find it difficult to believe that it accounts for the observed behavior and suspect a fault in the RTC chip.
* glob -l on broken symlink fixvincentdarley2003-02-122-7/+48
|
* * tests/lsearch.test:hobbs2003-02-111-1/+6
| | | | | * generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case that lsearch -regepx list and pattern objects are equal.
* Corrected a problem where http-4.14 would fail when run with a proxy Kevin B Kenny2003-02-111-3/+3
| | | | server. Replaced references to scriptics.com by tcl.tk.
* correct test nameshobbs2003-02-111-3/+3
|
* * tests/stringObj.test:hobbs2003-02-111-13/+8
| | | | | * generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char opt of 2002-11-11 to not stop early on \x00. [Bug #684699]