summaryrefslogtreecommitdiffstats
path: root/tests/thread.test
Commit message (Collapse)AuthorAgeFilesLines
* 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * Fix for [Bug 1565466]mistachkin2009-10-181-4/+7
| | | | | | | | | FossilOrigin-Name: e8a77e95823c1de7cc7ded8614bd0958f7ca019d
| * | Fix for [Bug 988703, 1565466]mistachkin2009-10-181-4/+7
| | | | | | | | | FossilOrigin-Name: 3a43f003a8f4e595938bf2fe553aa3cd66ea9616
* | | Fix for [Bug 1565466]mistachkin2009-10-181-4/+7
| | | | | | | | | FossilOrigin-Name: ff40104ffa0607c1e7e529b7162d3e776b233dd9
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
| | | | | | | | | FossilOrigin-Name: 1e5261316ed076ff5ff69f2a720e8eff30fcf66e
* | | TIP 285 Implementationmistachkin2008-06-131-3/+1191
|/ / | | | | FossilOrigin-Name: 505c316922f01840b9fed6a409f5ca5786f5ad7d
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | thread-4.4: clear ::errorInfo in the thread as a message is left here from ↵patthoyts2007-08-211-2/+2
| | | | | | | | | | init.tcl on windows due to no tcl_pkgPath. FossilOrigin-Name: 6461c7599ac9600e4cd52f5508e871c51431ad3a
* | * generic/tclBasic.c: Use fully qualified variable names fordgp2007-08-141-2/+3
| | | | | | | | | | | | | | | | * tests/thread.test: ::errorInfo and ::errorCode so that string * tests/trace.test: reported to variable traces are fully qualified in agreement with Tcl 8.4 operations. FossilOrigin-Name: c2aa87efdef5e5a3af30308bbb4dd50803fad3e5
* | * tests/*.test: updated all tests to refer explicitly to thetip-278-20061009msofer2006-10-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the global namespace, that feature is tested specifically in namespace and variable tests. The modified testfiles are: apply.test, basic.test, case.test, cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test, event.test, expr.test, fileSystem.test, for.test, http.test, if.test, incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test, misc.test, namespace.test, parse.test, parseOld.test, pkg.test, proc-old.test, set.test, switch.test, tcltest.test, thread.test, var.test, while-old.test, while.test. FossilOrigin-Name: a8fcd798f4d17d4d3c958b65f206e78267d99627
* | * generic/tclExecute.c (IllegalExprOperandType,TclExecuteByteCode):dgp2004-10-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed several DECACHE_INFO/CACHE_INFO pairs that are no longer needed for protection because routines like Tcl_SetErrorCode() and Tcl_AddErrorInfo() can no longer re-enter bytecode execution. * generic/tclResult.c (TclProcessReturn): Bug fix. Be sure that a missing -errorinfo option when code == TCL_ERROR causes the errorInfo field to get reset. * tests/thread.test (thread-4.4): Test depended on a ::errorInfo value initialized to "". Added code to test to setup that requirement. FossilOrigin-Name: 8d245f4a566a9f086775b5502d3832559ac00093
* | Added tests for deep-object-freeingdkf2004-06-181-1/+18
| | | | | | FossilOrigin-Name: 102d5672a6a73447e17afbd212215e9b58091faa
* | Remove extraneous spacedkf2004-06-181-23/+1
| | | | | | FossilOrigin-Name: 932e145c764984361cc9142f8ba28cf3f9d3cd7f
* | Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-5/+3
|/ | | | | necessary. FossilOrigin-Name: ae1ac5736f8152bee6dd84f96e191a4a097cebb3
* 2000-05-02 Andreas Kupries <a.kupries@westend.com>kupries2000-05-021-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overall changes: (1) Implementation of joinable threads for all platforms. (2) Additional API's for channels. Required to allow the thread extension to move channels between threads. * generic/tcl.decls (lines 1360f): Added Tcl_JoinThread, Tcl_IsChannelShared, Tcl_IsChannelRegistered, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers (slots 394 to 400). * generic/tclIO.c: Implemented Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. Tcl_CutChannel uses code from CloseChannel. Replaced this code by a call to Tcl_CutChannel. Replaced several code fragments adding channels to the channel list with calls to Tcl_SpliceChannel. Removed now unused variables from CloseChannel and Tcl_UnstackChannel. Tcl_ClearChannelHandlers uses code from Tcl_Close. Replaced this code by a call to Tcl_ClearChannelHandlers. Removed now unused variables from Tcl_Close. Added the subcommands 'cut', 'forgetch', 'splice' and 'isshared' to the test code (TclTestChannelCmd). * unix/tclUnixThread.c: Implemented Tcl_JoinThread using the pthread-functionality. * win/tclWinThrd.c: Fixed several small typos in comments. Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Added 'joinLock' to serialize Tcl_CreateThread and TclpExitThread to prevent a race for joinable threads. * mac/tclMacThrd.c: Implemented Tcl_JoinThread using a platform independent emulation layer (see generic/tclThreadJoin.c below). Due to the cooperative nature of threading on this platform the race mentioned above is not present. * generic/tclThreadJoin.c: New file. Contains a platform independent emulation layer helping in the implementation of joinable threads for the win and mac platforms. * generic/tclInt.h: Added declarations for TclJoinThread, TclRememberJoinableThread and TclSignalExitThread. These procedures define the API of the emulation layer for joinable threads (see generic/tclThreadJoin.c above). * win/Makefile.in: * win/makefile.vc: Added generic/tclTheadJoin.o to the rules. * mac/: I don't know to which file generic/tclTheadJoin.o has to be added to so that it compiles. Sorry. * unix/tclUnixChan.c: #ifdef'd the thread-local list of file channels as it prevents us from transfering channels. To restore this we may need an extended interface to drivers in the future. Target: 9.0. Found while testing the new transfer of channels. The information in this list for a channel was left behind and then crashed the system during finalization. * generic/tclThreadTest.c: Added -joinable flag to 'testthread create'. Added subcommand 'testthread join'. * doc/CrtChannel.3: Added documentation for Tcl_IsChannelRegistered, Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel, Tcl_IsChannelExisting and Tcl_ClearChannelHandlers. * doc/Thread.3: Added documentation for Tcl_JoinThread. * tests/thread.test: Added tests for joining of threads. FossilOrigin-Name: cdf262856d1872c95cf12baf78d90874dae1b03f
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948]. FossilOrigin-Name: c2f93a113cfcb17a21da67cc20f54ab3f1b9fa3c
* new test caseshobbs1999-10-211-13/+1
| | | FossilOrigin-Name: 55d35aff2fdf8a27471bd2db23f8a5e04cfba3ed
* Changed the tests to use the testConstraints array that thejenn1999-07-011-3/+3
| | | | | | test harness uses instead of the old name (testConfig). FossilOrigin-Name: 6b946e4c3413bd78b62341d25d3a25f9f9a1d0b0
* 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. FossilOrigin-Name: dbfd75f43f496269e869e2fbd58f86e25bdcef4c
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
| | | FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
* Resynced with mainline.rjohnson1999-04-211-1/+1
| | | FossilOrigin-Name: 45b9dd789f717fcc67d00014dd8255359b392df0
* moved the ThreadReap command to ::tcltest::threadReap. Now each thread test ↵hershey1999-04-201-82/+88
| | | | | | | | | | | 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). FossilOrigin-Name: 4ad79d115186b5269b4b20ec79edc4a8e49c5c99
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-0/+240
FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9