diff options
| author | nijtmans <nijtmans> | 2009-11-18 23:46:05 (GMT) |
|---|---|---|
| committer | nijtmans <nijtmans> | 2009-11-18 23:46:05 (GMT) |
| commit | 3e0dde4b2e96b9ed5c3d07db6bc0f63e4f8fa5b2 (patch) | |
| tree | 6938875528242df851eab59fa720c1395ee0f934 /generic/tclThreadTest.c | |
| parent | 3f9cdd2576ce81164f6caa0f7ff6fb3cd6d51734 (diff) | |
| download | tcl-3e0dde4b2e96b9ed5c3d07db6bc0f63e4f8fa5b2.zip tcl-3e0dde4b2e96b9ed5c3d07db6bc0f63e4f8fa5b2.tar.gz tcl-3e0dde4b2e96b9ed5c3d07db6bc0f63e4f8fa5b2.tar.bz2 | |
Fix [Bug 2883850]: pkgIndex.tcl doesn't
get created with static Tcl build
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. |
