summaryrefslogtreecommitdiffstats
path: root/tests/unixInit.test
Commit message (Collapse)AuthorAgeFilesLines
* Don't test Tcl_GetDefaultEncodingDir() any more (which is obsolete), test ↵jan.nijtmans2017-05-121-6/+11
| | | | Tcl_GetEncodingSearchPath() in stead.
* In the script library, selected modernizations from Patrick Fradin.dgp2013-01-301-8/+8
|\
| * In the script library, selected modernizations from Patrick Fradin.dgp2013-01-301-8/+8
| |
* | More test suite updating.dkf2011-03-111-33/+22
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * tests/unixInit.test (7.1): Alternative fix for thedgp2005-04-271-6/+6
| | | | | | | | | | | | 2005-04-22 commit.
| | * * tests/unixInit.test (7.1): fixed failure when running testsdas2005-04-211-2/+2
| | | | | | | | | | | | with -tmpdir arg not set to working dir.
| | * * macosx/Makefile:das2004-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/configure.in: * unix/tclUnixInit.c (MacOSXGetLibraryPath): changed detection of tcl framework build when determining tclLibPath from overloaded TCL_LIBRARY to configuration define TCL_FRAMEWORK. [Bug 1068088] * unix/configure: autoconf-2.13 * tests/unixInit.test (7.1): fixed failure when running tests with -tmpdir arg not set to working dir.
| | * * tests/appendComp.test: Backport test suite fixes of errorsdgp2004-10-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
| | * * tests/unixInit.test (unixInit-2.10): Test correction for Mac OSX.dgp2004-05-051-3/+7
| | | | | | | | | | | | | | | Be sure to consistently compare normalized path names. Thanks to Steven Abner (tauvan). [Bug 948177]
| | * * tests/unixInit.test (unixInit-3.1): Default encoding on Darwindgp2004-04-061-2/+4
| | | | | | | | | | | | systems is utf-8. Thanks to Steven Abner (tauvan). [Bug 928808]
| | * * tests/basic.test: Made several tests more robust to thedgp2004-02-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/cmdMZ.test: list-quoting of path names that might * tests/exec.test: contain Tcl-special chars like { or [. * tests/io.test: Should help us sort out Tcl Bug 554068. * tests/pid.test: * tests/socket.test: * tests/source.test: * tests/unixInit.test:
| | * add constraints to unixInit-7.1hobbs2004-02-181-2/+4
| | |
| | * * tests/unixInit.test: unixInit-7.1hobbs2004-02-171-1/+14
| | | | | | | | | | | | | | | * unix/tclUnixInit.c (TclpInitPlatform): ensure the std fds exist to prevent crash condition [Bug #772288]
| | * * tests/unixInit.test (unixInit-2.10): re-enabled.dgp2003-11-101-2/+2
| | | | | | | | | | | | | | | | | | * unix/tclUnixInit.c (TclpInitLibraryPath): Alternative fix * win/tclWinInit.c (TclpInitLibraryPath): for [Bug 832657] that should not run afoul of startup constraints.
| | * * tests/unixInit.test (unixInit-2.10): mark as knownBughobbs2003-11-061-4/+4
| | | | | | | | | | | | | | | | | | * generic/tclEncoding.c (TclFindEncodings): revert patch from 2003-11-05. It wasn't valid in the sensitive startup init phase and broke Windows from working at all.
| | * * generic/tclEncoding.c (TclFindEncodings): Normalize the pathdgp2003-11-051-1/+35
| | | | | | | | | | | | | | | | | | of the executable before passing to TclpInitLibraryPath() to avoid buggy handling of paths containing "..". [Bug 832657] * tests/unixInit.test (unixInit-2.10): New test for fixed bug.
* | | Clean up of tests and conversion to tcltest 2. Target has been to get init anddkf2011-01-011-43/+45
|/ / | | | | | | cleanup code out of the test body and into the -setup/-cleanup stanzas.
* | Keep most tests from making sockets that are reachable off the machine.dkf2006-11-031-2/+2
| |
* | Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-40/+4
| | | | | | | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | * tests/unixInit.test (7.1): Alternative fix for thedgp2005-04-281-6/+6
| | | | | | | | 2004-11-11 commit.
* | * tests/unixInit.test: Disabled obsolete tests and removed codedgp2005-04-151-57/+24
| | | | | | | | | | * tests/encoding.test: that supported them. * generic/tclInterp.c:
* | * 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.
* | Patch 976520 reworks several of the details involved withdgp2004-11-301-24/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | * 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]
* | * tests/unixInit.test: Removed "knownBug" constraints to promptdgp2004-11-191-9/+9
| | | | | | | | bug fixing before 8.5a2 release.
* | * tests/fileName.test:das2004-11-111-3/+3
| | | | | | | | | | | | | | | | | | * 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.
* | Standardize some use of test constraints onto names that are documenteddkf2004-06-231-18/+18
| |
* | * doc/Encoding.3: Removed bogus claims about tcl_libPath.dgp2004-06-111-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInterp.c (Tcl_Init): Stopped setting the tcl_libPath variable. [tclInit] can get all its directories without it. * tests/unixInit.test: Modified test code that made use of tcl_libPath variable. * unix/tclUnixInit.c: Stopped setting the tclDefaultLibrary variable, execept on the Mac OS X platform with HAVE_CFBUNDLE. In that configuration we should seek some way to make use of the TIP 59 facilities and get rid of that usage of tclDefaultLibrary as well.
* | * unix/tclUnixInit.c (TclpInitLibraryPath): Disabled addition ofdgp2004-06-101-21/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * win/tclWinInit.c (TclpInitLibraryPath): relative-to-executable directories to the library search path. A first step in reform of Tcl's startup process. ***POTENTIAL INCOMPATIBILITY*** Attempts to directly run ./tclsh or ./tcltest out of a build directory will either fail, or will make use of an installed script library in preference to the one in the source tree. Use `make shell` or `make runtest` instead. * tests/unixInit.test: Modified tests to suit above changes.
* | * tests/winPipe.test: Protect against path being setdgp2004-05-251-2/+3
| | | | | | | | | | | | * tests/unixInit.test: Unset path when done. * tests/unload.test (unload-3.1): Verify [pkgb_sub] does not exist. Delete interps when done.
* | * tests/unixInit.test (unixInit-2.10): Test correction for Mac OSX.dgp2004-05-051-2/+7
| | | | | | | | | | Be sure to consistently compare normalized path names. Thanks to Steven Abner (tauvan). [Bug 948177]
* | * tests/unixInit.test (unixInit-3.1): Default encoding on Darwindgp2004-04-061-2/+4
| | | | | | | | systems is utf-8. Thanks to Steven Abner (tauvan). [Bug 928808]
* | * tests/basic.test: Made several tests more robust to thedgp2004-02-251-4/+4
| | | | | | | | | | | | | | | | | | | | * tests/cmdMZ.test: list-quoting of path names that might * tests/exec.test: contain Tcl-special chars like { or [. * tests/io.test: Should help us sort out Tcl Bug 554068. * tests/pid.test: * tests/socket.test: * tests/source.test: * tests/unixInit.test:
* | add constraints to unixInit-7.1hobbs2004-02-181-2/+4
| |
* | * tests/unixInit.test (unixInit-7.1):hobbs2004-02-171-1/+14
| | | | | | | | | | * unix/tclUnixInit.c (TclpInitPlatform): ensure the std fds exist to prevent crash condition [Bug #772288]
* | * tests/unixInit.test (unixInit-2.10): New test to expose [Bug 832657]dgp2003-11-051-1/+35
|/ | | | | failure of TclpInitLibraryPath() to properly handle .. in the path of the executable.
* unset path to make it work for singleproc runshobbs2002-12-041-2/+2
|
* * tests/unixInit.test: relaxed unixInit-3.1 to accept iso8859-15dgp2002-07-241-3/+5
| | | | as a valid C encoding. [Bug 575336]
* * Improved constraints to protect /tmp. [Bug 581403]dgp2002-07-151-5/+7
|
* * Cleaned up, constrained, and reduced the amount of [exec] usagedgp2002-07-101-50/+48
| | | | in the test suite.
* * Fixes to test suite when there's a spacedgp2002-05-081-2/+2
| | | | in the working path. Thanks to Kevin Kenny.
* * Corrected restore of ::env(LANG).dgp2001-10-101-2/+3
|
* * Updated test to supportdgp2001-09-061-5/+8
| | | | | | newer HP-UX releases that properly report euc-jp as the system encoding for Japanese. Bug report and patch verification by Bob Techentin. [Bug 453883]
* * Correcteddgp2001-08-271-9/+3
| | | | | | inconsistency between the search path for script libraries and the directory name $DISTNAME into which distributions built by 'make test' unpack. [Bug 455642]
* * Corrected expected resultdgp2001-08-241-2/+4
| | | | to match Tcl's quirky construction of its init library path.
* typo fixdgp2001-07-121-2/+2
|