summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclAssembly.c (BBEmitInstInt1): Changed parameter Kevin B Kenny2011-03-131-1/+1
| | | | | | | | | | data types in an effort to silence a MSVC warning reported by Ashok P. Nadkarni. Unable to test, since both forms work on my machine in VC2005, 2008. 2010, in both release and debug builds. * tests/tclTest.c (TestdstringCmd): Restored MSVC buildability broken by [5574bdd262], which changed the effective return type of 'ckalloc' from 'char*' to 'void*'.
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-38/+36
| | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* Fix remaining broken tests (test failures appear non-serious)dkf2011-03-101-4/+4
|
* Renamed struct TEOV_callback to the more descriptive NRE_callback.Miguel Sofer2011-03-051-1/+1
|
* 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.
| | * * generic/tclTest.c: Backport the [testexprlongobj] testing command.dgp2008-03-071-1/+48
| | |
| | * * generic/tclCmdMZ.c: Corrected broken trace reversal logic indgp2007-06-271-3/+18
| | | | | | | | | | | | | | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/basic.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931].
| | * * generic/tcl.decls: Implemented TIP #268, conditionally.andreas_kupries2006-09-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define TCL_TIP268 to activate the new * generic/tclDecls.h: features. * generic/tclInt.h: * generic/tclPkg.c: * generic/tclStubInit.c: * generic/tclTest.c: * library/init.tcl * library/package.tcl: * tests/pkg.test: * tests/platform.test: * tests/safe.test: * doc/PkgRequire.3:
| | * backport of file writable fixesvincentdarley2006-03-191-64/+1
| | |
| | * * generic/tclIOUtil.c: workaround gcc warning "comparison is alwaysdas2005-12-151-1/+12
| | | | | | | | | | | | * generic/tclTest.c: false due to limited range of data type".
| | * * generic/tclBasic.c:Miguel Sofer2005-10-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others.
| | * fix for [Bug 1008314]Miguel Sofer2004-08-161-3/+42
| | |
| | * Silence compiler warningsdgp2004-06-081-2/+3
| | |
| | * * generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62dgp2004-03-011-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclTest.c (TestcmdtraceCmd): implementation introduced a * tests/basic.test (basic-39.10): bug by testing the CallFrame level instead of the iPtr->numLevels level when deciding what traces created by Tcl_Create(Obj)Trace to call. Added test to expose the error, and made fix. [Request 462580]
| | * stop compiler warningdgp2004-02-201-2/+2
| | |
| | * * generic/regcomp.c: Backported regexp bug fixes and tests. Thanksdgp2003-11-171-4/+22
| | | | | | | | | | | | | | | * generic/tclTest.c: to Pavel Goran and Vince Darley. * tests/reg.test: [Bugs 230589, 504785, 505048, 703709, 840258]
| | * fix testsuite backport errorvincentdarley2003-10-311-2/+2
| | |
| | * * generic/tclIOUtil.c (FsListMounts, FsAddMountsToGlobResult): Newandreas_kupries2003-10-221-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions. See below for context. (Tcl_FSMatchInDirectory): Modified to call on the new functions (above) to handle the mountpoints in the glob'bed directory correctly. Part of the patch by Vincent Darly to solve the [Bug 800106] for the 8.4.x series. * generic/tcl.h (TCL_GLOB_TYPE_MOUNT): New definition. Part of the patch by Vincent Darly to solve [Bug 800106] for the 8.4.x series.
| | * Made Tcl_NumUtfChars do the right thing with \u0000 when guessing the lengthdkf2003-10-081-2/+28
| | | | | | | | | | | | because of a negative 'length' parameter. [Bug 769812]
| | * * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjTypedgp2003-04-161-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclObj.c is defined on all platforms, even those where * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made the Tcl_Value struct have a wideValue field on all platforms. This is a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms because that struct changes size. This is the same TIP 72 incompatibility that was seen on other platforms at the 8.4.0 release, when this change should have happened as well. [Bug 713562] * generic/tclInt.h: New internal macros TclGetWide() and TclGetLongFromWide() to deal with both forms of the "wideInt" Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code is confined to the header file. * generic/tclCmdAH.c: Replaced most coding that was conditional * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that * generic/tclExecute.c: works across platforms, sometimes using * generic/tclTest.c: the new macros above to do it. * generic/tclUtil.c: * generic/tclVar.c:
| * | Various mismatches between Tcl_Panic format string and its arguments,nijtmans2011-01-181-2/+2
| | | | | | | | | | | | discovered thanks to [Bug 3159920]
| * | * generic/tclInt.decls: Backport of Kevin B. Kenny's work onandreas_kupries2010-11-301-1/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs. * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them. * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h: Regenerated.
| * | better panic messagenijtmans2010-02-011-9/+9
| | |
| * | Various CYGWIN-related fixesnijtmans2010-01-311-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
| * | Use correct TCL_LL_MODIFIER for CYGWIN.nijtmans2010-01-291-3/+11
| | | | | | | | | | | | | | | Formatting (all backported from HEAD) Fix gcc 4.4 warning: ignoring return value of ‘write’,
| * | [Bug 942170]: Detect the st_blocks field of 'struct stat' correctly.dkf2009-12-281-3/+5
| | |
| * | Plug testing memleak. [Bug 2895367]dkf2009-12-121-89/+110
| | |
| * | * generic/tclTest.c (TestconcatobjCmd): fix use of internal-onlydas2008-08-201-3/+9
| | | | | | | | | | | | | | | TclInvalidateStringRep macro. [Bug 2057479]
| * | * generic/tclTest.c (TestconcatobjCmd):Miguel Sofer2008-08-171-1/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclUtil.c (Tcl_ConcatObj): * tests/util.test (util-4.7): fix [Bug 1447328]; the original "fix" turned Tcl_ConcatObj() into a hairy monster. This was exposed by [Bug 2055782]. Additionally, Tcl_ConcatObj could corrupt its input under certain conditions! *** NASTY BUG FIXED ***
* | | Various mismatches between Tcl_Panic format string and its arguments,nijtmans2011-01-181-2/+2
| | | | | | | | | | | | discovered thanks to [Bug 3159920]
* | | fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-011-3/+3
| | | | | | | | | | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
* | | 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-281-1/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them.
* | | * generic/tclBasic.c: [Patch 3072080] (minus the itclMiguel Sofer2010-09-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: update): a saner NRE. * generic/tclCompExpr.c: * generic/tclCompile.c: This makes TclNRExecuteByteCode * generic/tclCompile.h: (ex TEBC) to be a normal NRE * generic/tclExecute.c: citizen: it loses its special status. * generic/tclInt.decls: The logic flow within the BC engine is * generic/tclInt.h: simplified considerably. * generic/tclIntDecls.h: * generic/tclObj.c: * generic/tclProc.c: * generic/tclTest.c:
* | | Remove many type casts which are no longernecessary as a result of [Patch ↵nijtmans2010-08-221-2/+2
| | | | | | | | | | | | 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
* | | [Bug 3029891] Functions that don't belong in the stub table.nijtmans2010-07-241-3/+3
| | |
* | | Use function prototypes from the FS API.nijtmans2010-04-201-49/+30
| | |
* | | Remove unnecessary '&' decoration for functionnijtmans2010-03-111-29/+29
| | | | | | | | | | | | | | | pointers. Fix double declaration of TclNativeDupInternalRep
* | | test that tclOO stubs are present in stub librarynijtmans2010-03-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | Applied missing part of [Patch 2961556] Change all tclWinProcs signatures to use TCHAR* in stead of WCHAR*. This is meant as preparation to make [Enh 2965056] possible at all.
* | | remove presence of tclTomMathStubsPtr in tclStubLib.cnijtmans2010-03-061-2/+5
| | | | | | | | | | | | test that tommath stubs are present in stub library
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-81/+77
| | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts.
* | | Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-3/+3
| | |
* | | Remove unnecessary EXTERN's, which alreadynijtmans2010-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | are in the global stub table. Use @EXEEXT@ in stead of @EXT_SUFFIX@ Use -DBUILD_tcl in Makefile for CYGWIN Use EXTERN to control CYGWIN exported symbols Remove some unnecessary type casts.
* | | Follow-up to earlier commit today:nijtmans2010-02-051-3/+3
| | | | | | | | | | | | | | | | | | Eliminate the need for an extra Stubs Pointer for adressing a static stub table: Just change the exported table from static to MODULE_SCOPE.
* | | Fix gcc warning: ignoring return value of ‘write’,nijtmans2009-12-161-3/+11
| | | | | | | | | | | | | | | | | | declared with attribute warn_unused_result CONSTify functions TclpGetUserHome and TclSetPreInitScript (TIP #27)
* | | Plug testing memleak. [Bug 2895367]dkf2009-12-121-77/+98
| | |
* | | #undef STATIC_BUILD in tclWin(Dde|Reg).c, in order to makenijtmans2009-11-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sure that Xxxxx_Init is always exported even when Tcl is built static (otherwise we cannot create a DLL). tclThreadTest.c: Make all functions static, except TclThread_Init. fCmd.test Enable fCmd-30.1 when registry is available. tcl.m4 Fix ${SHLIB_LD_LIBS} definition, fix conflicts configure.in between static libraries and import library on windows. configure (regenerated) Makefile.in Simplifications related to tcl.m4 changes.
* | | Test-case for fixed [Bug 2849797]nijtmans2009-11-191-3/+1
| | | | | | | | | | | | | | | | | | Fix safe-10.1 and safe-10.4 test cases, making the wrong assumption that Tcltest should be a static package.
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-12/+54
| | | | | | | | | | | | get created with static Tcl build