summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* beefed up the string object testshershey1999-06-151-70/+92
|
* Improved the appendObj functions (uncomented the optimized code that washershey1999-06-151-96/+81
| | | | | | | | | present in the Unicode obj). Updated the teststringobj command to look in the correct location for the amount of space allocated for the UTF string rep. Note: one stringObj test is still failing; it reflects a change in that may not be undesirable...
* Merged String and Unicode object types. Added new functions tohershey1999-06-152-205/+180
| | | | | | | | | the puplic API: Tcl_NewUnicodeObj, Tcl_SetUnicodeObj, Tcl_GetUnicode, Tcl_GetUniChar, Tcl_GetCharLength, Tcl_GetRange, Tcl_AppendUnicodeToObj. Note: some stringObj tests are still failing--the teststringobj command still needs to be updated.
* * generic/tclUnicodeObj.c: Lots of cleanup and simplification.stanton1999-06-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | Fixed several memory bugs. Added TclAppendUnicodeToObj. * generic/tclInt.h: Added declarations for various Unicode string functions. * generic/tclRegexp.c: * generic/tclCmdMZ.c: Changed to use new Unicode string interfaces for better performance. * generic/tclRegexp.h: * generic/tclRegexp.c: * generic/tcl.h: * generic/tcl.decls: Added Tcl_RegExpMatchObj and Tcl_RegExpGetInfo calls to access lower level regexp API. These features are needed by Expect. This is a preliminary implementation pending final review and cleanup. * generic/tclCmdMZ.c: * tests/string.test: Fixed bug where string map failed on null strings.
* unset the variable "u" whose initial value could affect test passage.hershey1999-06-091-1/+3
|
* added code to unset the "data" array so tests that follow can use a scalarhershey1999-06-082-6/+10
| | | | data var w/o having to unset it first.
* * tests/string.test:hershey1999-06-082-1/+234
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclVar.c (Tcl_SetVar2Ex): * generic/tclStringObj.c (Tcl_AppendObjToObj): * generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string index, string length, string range, and append command in cases where the object's internal rep is a bytearray. Objects with other internal reps are converted to have the new unicode internal rep. * unix/Makefile.in: * win/Makefile.in: * win/Makefile.vc: * tests/unicode.test: * generic/tclInt.h: * generic/tclObj.c: * generic/tclUnicodeObj.c: added a new object type to store the unicode representation of a string. * generic/tclTestObj.c: added the objtype option to the testobj command. This option returns the name of the type of internal rep an object has.
* * generic/tclCmdMZ.c (Tcl_StringObjCmd):stanton1999-06-032-24/+56
| | | | | * tests/string.test: Fixed bug where string equal/compare -nocase reported wrong result on null strings. [Bug: 2138]
* * tests/reg.test:stanton1999-06-021-11/+50
| | | | | | | | | | | | | | | | | | | | | | | | * generic/regc_color.c: * generic/regc_cvec.c: * generic/regc_lex.c: * generic/regc_locale.c: * generic/regc_nfa.c: * generic/regcomp.c: * generic/regcustom.h: * generic/rege_dfa.c: * generic/regerror.c: * generic/regerrs.h: * generic/regex.h: * generic/regexec.c: * generic/regfree.c: * generic/regfronts.c: * generic/regguts.h: * generic/tclCmdMZ.c: * generic/tclRegexp.c: * generic/tclRegexp.h: * generic/tclTest.c: Applied Henry Spencer's latest regexp patches that fix an infinite loop bug and add support for testing whether a string could match with additional input. [Bug: 2117]
* fixed error in test reported by prochecksurles1999-05-281-2/+2
|
* Merged changes from scriptics-tclpro-1-3-b2 branchstanton1999-05-224-106/+214
|
* Added test for command.com /c dir /b hang.redman1999-05-211-2/+6
|
* changed call to "remove" to "removeFile"--this bug was causing "httpd" filehershey1999-05-181-2/+2
| | | | to be left in working dir whenever tests are run.
* added -encoding to the list of legal options used in the error message whenhershey1999-05-181-8/+8
| | | | | a bad option is used. Because the fconfigure command is configurable (so more option can be added), the error string is hardcoded.
* * tests/regexp.test:stanton1999-05-131-1/+27
| | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: * generic/tclRegexp.h: * generic/tclRegexp.c: Replaced the per-interpreter regexp cache with a per-thread cache. Changed the Regexp object to take advantage of this extra cache. Added a reference count to the TclRegexp type so regexps can be shared by multiple objects. Removed the per-interp regexp cache from the interpreter. Now regexps can be used with no need for an interpreter. [Bug: 1063]
* * tests/string.test:stanton1999-05-061-1/+10
| | | | | | * generic/tclCmdMZ.c: * doc/string.n: Fixed bug in string equal/compare code when using -length option. Cleaned up docs a bit more.
* * doc/string.n:stanton1999-05-069-940/+785
| | | | | | | | | | | | | | | | | | | | * tests/cmdIL.test: * tests/cmdMZ.test: * tests/error.test: * tests/ioCmd.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * tests/cmdIL.test: * generic/tclUtil.c: * generic/tclCmdMZ.c: Replaced "string icompare/iequal" with -nocase and -length switches to "string compare/equal". Added a -nocase option to "string map". Changed index syntax to allow integer or end?-integer? instead of a full expression. This is much simpler with safeTcl scripts since it avoids double substitution issues.
* * tests/http.test: Unset "data" array before running tests tostanton1999-05-061-1/+2
| | | | avoid failures due to previous tests.
* * doc/string.n:stanton1999-05-042-13/+29
| | | | | | | * tests/cmdMZ.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Changed "string length" to avoid regenerating the string rep of a ByteArray object.
* * tests/cmdIL.test:stanton1999-05-048-93/+295
| | | | | | | | | | | | | * tests/cmdMZ.test: * tests/error.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): * generic/tclUtil.c (TclGetIntForIndex): Applied Jeff Hobbs's string patch which includes the following changes [Bug: 1845]:
* * tests/binary.test:stanton1999-05-031-1/+11
| | | | | * generic/tclBinary.c (DupByteArrayInternalRep): Fixed bug where type was not being set in duplicated object.
* * Merged changes from 8.1.0 branchstanton1999-04-302-3/+7
|
* Tcl_UtfToUpper and Tcl_UtfToTitle now works on badly formed Utf strings.hershey1999-04-301-1/+20
|
* Added tests for string toupper and string tolower called with badly formedhershey1999-04-291-1/+7
| | | | Utf strings.
* merged 8.1.0 changes into mainlinestanton1999-04-242-17/+19
|
* Resynced with mainline.rjohnson1999-04-2110-11/+25
|
* added a delay to a event to so it can pass on slower machines.hershey1999-04-202-13/+24
|
* moved the ThreadReap command to ::tcltest::threadReap. Now each thread test ↵hershey1999-04-204-109/+192
| | | | | | | | | calls threadReap at the beginning and end of the test, inside the test body. This fixes the problem where the test suite was exiting on a call to threadReap (reap was killing the main thread by accident because other tests were leaving threads running and setting mainthread to be the list of running threads).
* fixed bugs in tests--bug id 1769hershey1999-04-193-66/+42
|
* changes make Tcl_Access and Tcl_Stat public.hershey1999-04-171-2/+2
| | | | also one minor fix in tests/all.tcl to fix bug 1770.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-16126-4729/+18146
|
* Tests for pkg_mkIndex when input files do "namespace import". BUG 1327welch1999-03-311-1/+8
|
* Added tests for auto_mkindex_parser quoting problems, BUGID 1657welch1999-03-313-6/+137
|
* Merged stubs changes into mainline for 8.0stanton1999-03-101-2/+74
|
* * test/winPipe.test: Changed to remove echoArgs.tcl temporary filestanton1999-02-032-4/+4
| | | | | | | | | | when done. * tests/cmdAH.test: * generic/tclFileName.c (TclGetExtension): Changed behavior so the split happens at the last period in the name instead of the first period of the last run of periods. So, "foo..o" is split into "foo." and ".o" now. [Bug: 1126]
* * tests/interp.test:stanton1999-02-031-6/+6
| | | | | | * generic/tclInterp.c (DeleteAlias): Changed to use Tcl_DeleteCommandFromToken so we handle renames properly. This avoids senseless panic. [Bug: 736]
* * generic/tclProc.c:stanton1999-02-031-39/+155
| | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: * generic/tclInt.h: * generic/tclCmdIL.c: * generic/tclBasic.c: * generic/tclVar.c: Applied patch from Viktor Dukhovni to rationalize TCL_LEAVE_ERR_MSG behavior when creating variables. * generic/tclVar.c: Fixed bug in namespace tail computation. Fixed bug where upvar could resurrect a namespace variable whose namespace had been deleted. * generic/tclCompile.c (TclCompileExprCmd): Eliminated yet another bogus optimization in expression compilation. * generic/tclCompile.c (CompileExprWord): Fixed exception stack overflow bug caused by missing statement. [Bug: 928] * generic/tclIOCmd.c: * generic/tclBasic.c: Objectified the "open" command. [Bug: 1113]
* lintstanton1999-02-022-9/+9
|
* * generic/tclCompile.c (CompileExprWord): Fixed exception stackstanton1999-02-021-1/+10
| | | | overflow bug caused by missing statement. [Bug: 928]
* added pkg and pkg1 to list of files to copy to the current working dir, ifhershey1998-12-071-2/+2
| | | | the cwd is not tk8.0/tests
* Added test filewelch1998-12-041-0/+15
|
* Updated all and defs to work more smoothly with nightly tests.hershey1998-12-043-31/+41
| | | | | Check for existence of "testgetplatform" command before calling it in fCmd.test file--this command is only in tcltest interps.
* * tclWinSock.c (CreateSocket, TcpAccept): Windows NT createsstanton1998-12-041-1/+213
| | | | | sockets so they are inheritable by default. Turn off this bit so sockets aren't kept open by exec'ed processes. [Bug: 892]
* all file can now be run from any working dir.hershey1998-11-191-8/+57
|
* Added test cases for new pkg_mkIndex -load casewelch1998-11-122-64/+43
|
* Fixed quoting of { in an info complete test case.welch1998-11-111-2/+2
|
* Fixed some tests which were failing on the Mac because of path differences. ↵jingham1998-11-102-15/+26
| | | | Added a test to the resource tests to cover the but I fixed. Fixed the stat test commands - the mac files were getting a leading :, which the test commands did not expect
* Fixed timeout-related HTTP testwelch1998-11-031-2/+10
|
* fixed test that got stale on Windowsstanton1998-11-031-2/+5
|
* cleaned up test suite so most of the tests pass on Windowsstanton1998-11-0210-40/+55
|