summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * tests/unixInit.test (2.1-4): Added constraints so that when adgp2004-12-081-5/+15
| | | | | value of TCL_LIBRARY is required for process initialization, we skip the tests that mess with that value.
* * tests/msgcat.test: makeFile/removeFile cleanup [1079117]dgp2004-12-061-4/+3
|
* * tests/safe.test: Trim auto_path to improve performance [1080039]dgp2004-12-061-1/+5
|
* filesystem, glob, tilde fixvincentdarley2004-12-021-0/+51
|
* Upgrade more of the file to tcltest2, and collect constraint definitions to ↵dkf2004-12-021-51/+53
| | | | the top.
* Oops! <:^)dkf2004-12-011-2/+2
|
* Fix reported problems with tests for dde error messages. Also use more tcltest2dkf2004-12-011-81/+60
| | | | features to reduce [catch] count...
* Patch 976520 reworks several of the details involved withdgp2004-11-302-27/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup/initialization of the Tcl library, focused on the activities of Tcl_FindExecutable(). * generic/tclIO.c: Removed bogus claim in comment that encoding "iso8859-1" is "built-in" to Tcl. * generic/tclInt.h: Created a new struct ProcessGlobalValue, * generic/tclUtil.c: routines Tcl(Get|Set)ProcessGlobalValue, and function type TclInitProcessGlobalValueProc. Together, these take care of the housekeeping for "values" (things that can be held in a Tcl_Obj) that are global across a whole process. That is, they are shared among multiple threads, and epoch and mutex protection must govern the validity of cached copies maintained in each thread. * generic/tclNotify.c: Modified TclInitNotifier() to tolerate being called multiple times in the same thread. * generic/tclEvent.c: Dropped the unused argv0 argument to TclInitSubsystems(). Removed machinery to unsure only one TclInitNotifier() call per thread, now that that is safe. Converted Tcl(Get|Set)LibraryPath to use a ProcessGlobalValue, and moved them to tclEncoding.c. * generic/tclBasic.c: Updated caller. * generic/tclInt.h: TclpFindExecutable now returns void. * unix/tclUnixFile.c: * win/tclWinFile.c: * win/tclWinPipe.c: * generic/tclEncoding.c: Built new encoding search initialization on a foundation of ProcessGlobalValues, exposing new routines Tcl(Get|Set)EncodingSearchPath. A cache of a map from encoding name to directory pathname keeps track of where encodings are available for loading. Tcl_FindExecutable greatly simplified into just three function calls. The "library path" is now misnamed, as its only remaining purpose is as a foundation for the default encoding search path. * generic/tclInterp.c: Inlined the initScript that is evaluated by Tcl_Init(). Added verification after initScript evaluation that Tcl can find its installed *.enc files, and that it has initialized [encoding system] in agreement with what the environment expects. [tclInit] no longer driven by the value of $::tcl_libPath; it largely constructs its own search path now, rather than attempt to share one with the encoding system. * unix/tclUnixInit.c: TclpSetInitialEncodings factored so that a new * win/tclWinInit.c: routine TclpGetEncodingNameFromEnvironment can reveal that Tcl thinks the [encoding system] should be, even when an incomplete encoding search path, or a missing *.enc file won't allow that initialization to succeed. TclpInitLibraryPath reworked as an initializer of a ProcessGlobalValue. * unix/tclUnixTest.c: Update implementations of [testfindexecutable], [testgetdefenc], and [testsetdefenc]. * tests/unixInit.test: Corrected tests to operate properly even when a value of TCL_LIBRARY is required to find encodings. * generic/tclInt.decls: New internal stubs: TclGetEncodingSearchPath, TclSetEncodingSearchPath, TclpGetEncodingNameFromEnvironment. These are candidates for public exposure by future TIPs. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclTest.c: Updated [testencoding] to use * tests/encoding.test: Tcl(Get|Set)EncodingSearchPath. Updated tests.
* * library/clock.tcl: Corrected the regular expressions that matchKevin B Kenny2004-11-301-2/+6
| | | | | a time zone to allow for time zones specified as +HH or -HH. * tests/clock.test: Added regression test case for the above issue.
* Fix [Bug 1066837] without reopening other bugs... What a horrid hack! :^/dkf2004-11-251-1/+6
|
* * tests/tcltest.test: The order in which [glob] returns the filermax2004-11-251-3/+3
| | | | names is undefined, so tests should not depend on it.
* * generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in newdgp2004-11-241-1/+9
| | | | * tests/info.test (info-19.6): trivial matching branch [Bug 1072654]
* * generic/tclInterp.c: Restored several directories to the searchdgp2004-11-221-10/+7
| | | | | | | | * tests/unixInit.test: path used to locate init.tcl within [tclInit]. This change does not restore any directories to the encoding search path, so should still avoid the price of an unreasonably large number of filesystem accesses during encoding initialization at startup [Bug 976438]
* fix to windows file join bugvincentdarley2004-11-221-0/+7
|
* * tests/unixInit.test: Removed "knownBug" constraints to promptdgp2004-11-191-9/+9
| | | | bug fixing before 8.5a2 release.
* * tests/interp.test (interp-36.*): [interp bgerror] tests.dgp2004-11-181-1/+36
| | | | * generic/tclInterp.c: Corrected [interp bgerror] error messages.
* * tests/basic.test: Updated functional (not testing) uses ofdgp2004-11-184-48/+98
| | | | | | | | * tests/io.test: [bgerror] to make use of [interp bgerror]. * tests/socket.test: * tests/timer.test: * generic/tclInterp.c: Corrected [interp bgerror] error message.
* * generic/tclInt.h: Added comment warning that the olddgp2004-11-151-2/+10
| | | | | | | | | | ERR_IN_PROGRESS and ERROR_CODE_SET flag values should not be re-used for the sake of those extensions that have accessed them. * generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which failed * tests/trace.test (trace-33.1): to permit a variable trace created with [trace variable] to be destroyed with [trace remove]. Thanks to Keith Vetter for the report.
* TIP #221 IMPLEMENTATIONdgp2004-11-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define [::tcl::Bgerror] in new interps. * generic/tclEvent.c: Update Tcl_BackgroundError to make use of the registered [interp bgerror] command. * generic/tclInterp.c: New [interp bgerror] subcommand. * tests/interp.test: syntax tests updated. TIP #226 IMPLEMENTATION * generic/tcl.decls: Stubs for Tcl_(Save|Restore|Discard)InterpState * generic/tcl.h: New public opaque type, Tcl_InterpState. * generic/tclInt.h: Drop old private declarations. Add Tcl(Get|Set)BgErrorHandler * generic/tclResult.c: Tcl_*InterpState implementations. * generic/tclDictObj.c: Update callers. * generic/tclIOGT.c: * generic/tclTrace.c: TIP #227 IMPLEMENTATION * generic/tcl.decls: Stubs for Tcl_(Get|Set)ReturnOptions. * generic/tclInt.h: Drop old private declarations. * generic/tclResult.c: Tcl_*ReturnOptions implementations. * generic/tclCmdAH.c: Update callers. * generic/tclMain.c:
* * tests/fileName.test:das2004-11-116-13/+15
| | | | | | | | | * tests/fileSystem.test: * tests/io.test: * tests/msgcat.test: * tests/tcltest.test: * tests/unixInit.test: fixed bugs causing failures when running tests with -tmpdir arg not set to working dir.
* * tests/fCmd.test:das2004-11-111-1/+11
| | | | | | | | | * unix/tclUnixFCmd.c (TraverseUnixTree): added option to rewind() the readdir() loop whenever the source hierarchy has been modified by traverseProc (e.g. by deleting files); this is required to ensure complete traversal of the source hierarchy on certain filesystems like HFS+. Added test for failing recursive delete on Mac OS X that was due to this. [Bug 1034337]
* * tests/winFile.test: Attempted and untested fix for 1062491davygrvy2004-11-081-7/+7
|
* * tests/winFile.test: added contraint to winFile-4.0 to prevent it being run ↵davygrvy2004-11-071-2/+8
| | | | on NT4
* Major simplification of reg.test to de-Spencer it somewhat.dkf2004-11-051-744/+672
| | | | It's still cryptic, but perhaps not quite so bad now. :^)
* Add [file normalize] so expected paths come out right on Windows. [Bug 1053568]dkf2004-11-051-1/+3
|
* niggly test suite fixesdgp2004-11-041-2/+2
|
* remove knownBugs from clock tests by fixing themKevin B Kenny2004-11-031-9/+15
|
* niggly test suite fixesdgp2004-11-031-2/+2
|
* test cleanup correctiondgp2004-11-031-3/+6
|
* * generic/tclTrace.c (TclCallVarTraces): Improved ability to debugdgp2004-11-034-16/+36
| | | | | | | * tests/incr-old.test (incr-old-2.6): errors during variable * tests/incr.test (incr-{1,2}.28): traces by preserving the * tests/set.test (set-{2,4}.4): -errorinfo data. * tests/trace.test (trace-33.1): [Bug 527164]
* 2004-11-02 Don Porter <dgp@users.sourceforge.net>dgp2004-11-021-1/+42
| | | | | | | | * library/tcltest/tcltest.tcl: Corrected some misleading * tests/tcltest.test (tcltest-26.1,2): displays of ::errorInfo and ::errorCode information when the -setup, -body, and/or -cleanup scripts return an unexpected return code. Thanks to Robert Seeger for the fix. [RFE 1017151].
* Second part of fix for Bug 926106Kevin B Kenny2004-11-011-1/+13
|
* Fix for [Bug 761471]; NaN is now *never* equal to NaN...dkf2004-11-011-1/+6
|
* command quoting fixdgp2004-10-311-2/+2
|
* typo fixdgp2004-10-311-2/+2
|
* General cleanupdkf2004-10-311-139/+21
|
* Fix pseudo-constraintdkf2004-10-312-4/+4
|
* Minor fixes for marginally more claritydkf2004-10-311-10/+10
|
* Turn umask2 constraint into something more commonly satisfiabledkf2004-10-311-85/+39
| | | | Also turn conditional tests into constrained tests
* Added constraint to test that won't ever work on Unix (no drive letters!)dkf2004-10-311-2/+2
|
* General clean updkf2004-10-311-190/+63
|
* Remove broken test constraint. [bug 1053908]dkf2004-10-311-3/+2
|
* Make [info globals ::foo] work. [Bug 1057461]dkf2004-10-311-1/+5
|
* * library/tcltest/tcltest.tcl: Correct reaction to errors in thedgp2004-10-301-8/+6
| | | | | | | obsolete processCmdLineArgsHook. [Bug 1055673] * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.7 * unix/Makefile.in: * tests/all.tcl: Update to use [tcltest::configure].
* Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-295-14/+45
| | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage
* fix for execution stack corruption [Bug 1055676]. Credit dgp for detectiveMiguel Sofer2004-10-281-1/+23
| | | | work and fix.
* D'oh!dgp2004-10-281-2/+2
|
* * tests/socket.test (socket-13.1): Balanced [makeFile] anddgp2004-10-281-25/+25
| | | | [removeFile] commands.
* * tests/clock.test: Correct duplicate test names.dgp2004-10-284-12/+12
| | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables.
* * tests/registry.test: Fixed test files to load the correctdavygrvy2004-10-272-147/+145
| | | | | | | | | * tests/winDde.test: registry and dde packages by using the info * win/Makefile.in: from makefiles to tell tcltest where to load * win/makefile.vc: them from. This avoids grabbing the wrong package from $auto_path which might be the install point rather than the dev location. Kudos to Jennifer Hom for adding -load and -loadfile to the tcltest package. [Bug 926088]