summaryrefslogtreecommitdiffstats
path: root/tests/unixInit.test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Got test unixInit-2.8 to stop wiping out parts of my debug installation bydkf2001-07-121-2/+4
| | | | adding an extra constraint.
* * tests/unixInit.test (unixInit-2.8): Changed test back to usingdgp2001-07-031-5/+36
| | | | | | installation layout, adding comments explaining why the test writes to the directories it does, and checks to avoid destroying other files in /tmp.
* Fix for Bug #438070 I believe; for various reasons, testing on thedkf2001-07-031-17/+30
| | | | | | | environment where the actual bug was reported is very difficult (I've no access to an Alpha box, and even going to a ix86-redhat-linux is very difficult due to the way my sources are set up.) Improved the comments in the test too.
* * tests/unixInit.test (unixInit-2.8): Corrected test for alldgp2001-07-021-3/+21
| | | | | | | | | | | | absolute pathnames in library path when executable is installed near root directory to use correct development directory layout. [Bug 438014] * tests/unixInit.test (unixInit-2.9): * unix/tclUnixInit.c (TclpInitLibraryPath): * win/tclWinInit.c (TclpInitLibraryPath): Corrected buggy construction of search path entries relative to executable. Added test for bad construction. [Bug 438014]
* Removed requirement for local echo service; thanks Jeff for pointingdkf2001-06-281-9/+34
| | | | out this flaw.
* Unix channels now have the right type associated with them [bug #219137]dkf2001-06-181-8/+21
| | | | A couple of nasty faults/assumptions in unixInit.test are fixed too.
* 2001-01-04 Don Porter <dgp@users.sourceforge.net>dgp2001-01-041-1/+19
| | | | | | | | | | | | * tests/unixInit.test: * unix/tclUnixInit.c (TclpInitLibraryPath): * win/tclWinInit.c (TclpInitLibraryPath): Several entries in the library path ($tcl_libPath) are determined relative to the absolute path of the executable. When the executable is installed in or near the root directory of the file system, relative pathnames were being incorrectly generated, and in the worst case, memory access violations were crashing the program. [Bug 119416, Patch 102972]
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * unix/README:hobbs2000-02-101-1/+5
| | | | | | | | | | | | | | | | * unix/Makefile.in (dist): removed porting.notes and porting.old from distribution and CVS. The information was very outdated. Now refer to http://dev.scriptics.com/services/support/platforms.html * tests/unixInit.test: fixed japanese LANG encoding test [Bug: 3549] * unix/configure.in: * unix/tcl.m4: correct CFLAG_WARNING setting, fixed gcc config for AIX, added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998] * win/tclWinLoad.c (TclpLoadFile): improved error message for load failures, could perhaps be even more intelligent.
* * tests/tcltest.test:jenn1999-10-191-2/+3
| | | | | | | | | | | * doc/tcltest.n: * library/tcltest1.0/tcltest.tcl: Removed the extra return at the end of the tcltest.tcl file. Applied patches sent in by Andreas Kupries to add helper procs for debug output, add 3 new flags (-testsdir, -load, -loadfile), and internally refactors common code for dealing with paths into separate procedures. [Bug: 2838, 2842]
* Do additional checks to unset any environment variables set, changed orjenn1999-07-081-14/+8
| | | | created by the tests.
* Made test encoding test understand platform differences.rjohnson1999-07-071-3/+7
|
* Changed the tests to use the testConstraints array that thejenn1999-07-011-4/+4
| | | | test harness uses instead of the old name (testConfig).
* Fixed style problems in many of the test files.rjohnson1999-06-261-2/+2
| | | | Fixed bug in pkg.test where defs.tcl was still being used.
* Modified the tests to use the package tcltestjenn1999-06-261-10/+11
|
* merged 8.1.0 changes into mainlinestanton1999-04-241-3/+3
|
* Resynced with mainline.rjohnson1999-04-211-2/+2
|
* fixed bugs in tests--bug id 1769hershey1999-04-191-2/+1
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+205