diff options
author | nijtmans <nijtmans@noemail.net> | 2009-11-18 23:46:04 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2009-11-18 23:46:04 (GMT) |
commit | d4717182b8a41281b7635522256c4703bf5bd6d5 (patch) | |
tree | 6938875528242df851eab59fa720c1395ee0f934 /generic/tclThreadTest.c | |
parent | b0d5421fa166be130f5ee49d5eb7929f4f7b0ff7 (diff) | |
download | tcl-d4717182b8a41281b7635522256c4703bf5bd6d5.zip tcl-d4717182b8a41281b7635522256c4703bf5bd6d5.tar.gz tcl-d4717182b8a41281b7635522256c4703bf5bd6d5.tar.bz2 |
Fix [Bug 2883850]: pkgIndex.tcl doesn't
get created with static Tcl build
FossilOrigin-Name: 39268397d9e495cccd1fe6168edc5d0eb62e8db4
Diffstat (limited to 'generic/tclThreadTest.c')
-rw-r--r-- | generic/tclThreadTest.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c index 3b7c506..d4a5f92 100644 --- a/generic/tclThreadTest.c +++ b/generic/tclThreadTest.c @@ -12,13 +12,14 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclThreadTest.c,v 1.31 2009/02/10 23:09:05 nijtmans Exp $ + * RCS: @(#) $Id: tclThreadTest.c,v 1.32 2009/11/18 23:46:05 nijtmans Exp $ */ +#ifndef USE_TCL_STUBS +# define USE_TCL_STUBS +#endif #include "tclInt.h" -extern int Tcltest_Init(Tcl_Interp *interp); - #ifdef TCL_THREADS /* * Each thread has an single instance of the following structure. There is one @@ -577,14 +578,19 @@ NewTestThread( tsdPtr->interp = Tcl_CreateInterp(); result = Tcl_Init(tsdPtr->interp); - result = TclThread_Init(tsdPtr->interp); + if (result != TCL_OK) { + ThreadErrorProc(tsdPtr->interp); + } /* * This is part of the test facility. Initialize _ALL_ test commands for * use by the new thread. */ - result = Tcltest_Init(tsdPtr->interp); + result = Tcl_PackageRequire(tsdPtr->interp, "Tcltest", TCL_VERSION, 1); + if (result != TCL_OK) { + ThreadErrorProc(tsdPtr->interp); + } /* * Update the list of threads. |