summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * tests/fCmd.test (fCmd-6.26): fix failure when env(HOME) path containsdas2006-11-101-2/+2
| | | | | | | | | | | | | | symlinks. * macosx/Tcl.xcodeproj/project.pbxproj: remove tclParseExpr.c; when running testsuite from inside Xcdoe, skip stack-3.1 (it only fails under those circumstances). * unix/tcl.m4 (Darwin): suppress linker arch warnings when building universal for both 32 & 64 bit and no 64bit CoreFoundation is available; sync with tk tcl.m4 change. * unix/configure.in: whitespace. * unix/configure: autoconf-2.59
* Optimize for the unshared case.dkf2006-11-092-6/+16
|
* Implemented [string reverse].dkf2006-11-092-8/+16
| | | | Finalizes basic TIP#272 implementation.
* Implemented [lreverse] from TIP#272dkf2006-11-091-1/+14
|
* TIP#274 IMPLEMENTATIONdgp2006-11-051-1/+4
| | | | | * generic/tclParseExpr.c: Exponentiation operator is now * tests/expr.test: right associative. [Patch 1556802]
* * generic/tclBasic.c (TEOVI):Miguel Sofer2006-11-031-2/+20
| | | | | | * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution traces may cause a second command resolution in the wrong namespace.
* Rename constraint to look more conventionaldkf2006-11-031-15/+11
|
* Keep most tests from making sockets that are reachable off the machine.dkf2006-11-036-97/+89
|
* Minor syntactic changesdkf2006-11-031-7/+6
|
* * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-0324-259/+259
| | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* Fixed non-robustness error when opening subshell pipes when the current ↵dkf2006-11-021-12/+12
| | | | | | directory has a space in the name
* Fix [Bug 1587618], eliminating the callObjc and callObjv fields from the Interpdkf2006-10-312-8/+6
| | | | structure.
* * generic/tclExecute.c (INST_MOD): Corrected improper testing ofdgp2006-10-301-1/+14
| | | | | * tests/expr.test: the sign of bignums when applying Tcl's division rules. Thanks to Peter Spjuth. [Bug 1585704]
* * generic/tclNamesp.c (EnsembleImplementationCmd):Miguel Sofer2006-10-291-1/+19
| | | | | * tests/namespace.test (47.7-8): reverted a wrong "optimisation" that completely broke snit; added two tests.
* Insert of calling point in middle of procedure code. Also cleaned up howdkf2006-10-281-35/+3
| | | | [apply] terms generate stack trace info.
* * tests/info.test (info-9.11-12): tests for [Bug 1577492]Miguel Sofer2006-10-242-3/+56
| | | | * tests/apply.test (apply-4.3-5): tests for [Bug 1574835]
* * library/clock.tcl (format, scan): corrected wrong # argsMiguel Sofer2006-10-232-6/+6
| | | | | | | | | | | | | | | | | * tests/clock.test (3.1, 34.1): messages to make use of the new rewrite capabilities of [info level] * generic/tcl.h: Lets TEOV update the iPtr->objc/objv * generic/tclBasic.c: fields, except when the (new) flag bit * generic/tclInt.h: TCL_EVAL_NOREWRITE is present. This * generic/tclNamesp.c: causes [info level] to know and use * generic/tclProc.c: ensemble rewrites [Bug 1577492] * tests/namespace.test: ***POTENTIAL INCOMPATIBILITY*** The return value from [info level 0] on interp alias calls is changed: previously returned the target command (including curried values), now returns the source - what was actually called.
* Undo mistaken commit to wrong branch caused by CVS fumble... :-}dkf2006-10-202-1252/+5
|
* Consolidated TIP#257 patch applied to HEAD to allow for experimentation bydkf2006-10-202-5/+1252
| | | | other developers
* * tclProc.c (SetLambdaFromAny):Miguel Sofer2006-10-161-1/+40
| | | | | * tests/apply.test (9.1-9.2): plugged intrep leak [Bug 1578454], found by mjanssen.
* * generic/tclInterp.c (ApplyObjCmd):Miguel Sofer2006-10-121-1/+88
| | | | | | * tests/interp.test (interp-14.5-10): made [interp alias] use the ensemble rewrite machinery to produce better error messages [Bug 1576006]
* * tests/namespace.test (namespace-51.16): Added test.dgp2006-10-101-1/+6
|
* * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-0933-192/+192
| | | | | | | | | | | | | | 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.
* TIP #275: Support unsigned values in binary commandpatthoyts2006-10-061-1/+161
|
* * generic/tcl.h: note limitation on changing Tcl_UniChar sizehobbs2006-10-051-3/+4
| | | | | | * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc): * tests/encoding.test (encoding-16.1): fix alignment issues in unicode <> utf conversion procs. [Bug 1122671]
* * generic/tclVar.c (Tcl_LappendObjCmd):Miguel Sofer2006-10-051-1/+10
| | | | | * tests/append.test(4.21-22): fix for longstanding [Bug 1570718], lappending nothing to non-list. Reported by lvirden
* dup test namedgp2006-10-041-2/+2
|
* Bug 1567956Kevin B Kenny2006-10-011-3/+4
|
* bug #1420432 - file mtime fails for directories on windowspatthoyts2006-10-011-2/+16
|
* bug 1567956: handle Msys environment a little differently in getuser functionpatthoyts2006-10-011-11/+20
|
* * generic/tclPkg.c (CompareVersions): Bugfix. Check string lengthsandreas_kupries2006-09-281-2/+4
| | | | | | | * tests/pkg.test: before comparison. The shorter string is the smaller number. Added testcases as well. Interestingly all existing test cases for vcompare compared numbers of the same length with each other. See [SF Tcl Bug 1563836].
* * generic/tclExecute.c: Corrected error in INST_LSHIFT in thedgp2006-09-281-1/+3
| | | | | | | | * tests/expr.test: calculation done to determine whether a shift in the (long int) type is possible. The calculation had literal value "1" where it needed a value "1L" to compute the correct result. Error detected via testing with the math::bigfloat package [Bug 1567222]
* * tests/pkg.test: Added test for version comparison at the 32bitandreas_kupries2006-09-271-1/+7
| | | | | | | | | | | | | boundary. [SF Tcl Bug 1563836]. * generic/tclPkg.c: [SF Tcl Bug 1563836]. Rewrote CompareVersion to perform string comparison instead of numeric. This breaks through the 32bit limit on version numbers. See code for details (handling of leading zeros, signs, etc.). un-CONSTed some arguments of CompareVersions, RequirementSatisfied, and AllRequirementsSatisfied. The new compare modifies the string (temporary string terminators). All callers use heap-allocated ver-intreps, so we are good with that.
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-23/+360
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* * generic/tclExecute.c (INST_EXPON): Native type overflow detectiondgp2006-09-191-1/+7
| | | | | | | * tests/expr.test: was completely broken. Falling back on use of bignums for all non-trivial ** calculations until native-type-constrained special cases can be done carefully and correctly. [Bug 1561260].
* * library/http/http.tcl: Change " " -> "+" url encoding mappinghobbs2006-09-161-2/+2
| | | | | * library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986. * tests/http.test (http-5.1): bump http to 2.5.3
* * tests/msgcat.test: Bumped version in auxiliary files as well.andreas_kupries2006-09-111-3/+3
| | | | * doc/msgcat.n:
* * generic/tclExecute.c: Corrected INST_EXPON flaw that treateddgp2006-09-111-4/+5
| | | | * tests/expr.test: $x**1 as $x**3. [Bug 1555371]
* * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-101-5/+9
| | | | | | | | | | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * library/tcltest/tcltest.tcl: add 'line' verbose level: prints source * doc/tcltest.n: file line information of failing tests. * macosx/Tcl.xcodeproj/project.pbxproj: add new tclUnixCompat.c file; revise tests target to use new tcltest 'line' verbose level. * unix/configure.in: add descriptions to new AC_DEFINEs for MT-safe. * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * tests/main.text (Tcl_Main-4.4): Test corrected to not bedgp2006-09-041-3/+3
| | | | timing sensitive to the Bug 1481986 fix. [Bug 1550858]
* * tests/expr-old.test: The remaining failing tests reported indgp2006-08-312-4/+4
| | | | | | * tests/expr.test: [Bug 1381715] are all new in Tcl 8.5, so there's really no issue of compatibility with Tcl 8.4 result to deal with. Fixed by updating tests to expect 8.5 results.
* bugfix, docs clarification and new tests for 'namespace upvar' [Bug 1546833]Miguel Sofer2006-08-261-12/+106
|
* * library/tzdata: Regenerated, including several new files,Kevin B Kenny2006-08-241-14/+23
| | | | | | | | | from Olson's tzdata2006j. * library/clock.tcl: * tests/clock.test: Removed an early testing hack that allowed loading 'registry' from the build tree rather than an installed one. This is a workaround for [Bug 15232730], which remains open because it's a symptom of a deeper underlying problem.
* * generic/tclParseExpr.c: Minimal collection of new testsdgp2006-08-231-1/+178
| | | | | | * tests/parseExpr.test: testing the error messages of the new expr parser. Several bug fixes and code simplifications that appeared during that effort.
* More test flexibilitydgp2006-08-223-50/+15
|
* * tests/compExpr-old.test: Update existing tests to not faildgp2006-08-229-843/+676
| | | | | | | | | | | * tests/compExpr.test: with the new expr parser. * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/for.test: * tests/if.test: * tests/parseExpr.test: * tests/while.test:
* * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, fordas2006-08-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | universal builds including x86_64, for 64-bit CoreFoundation on Leopard and for use of -mmacosx-version-min instead of MACOSX_DEPLOYMENT_TARGET. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tcl.h: add fixes for building on Leopard and support * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard. * macosx/tclMacOSXFCmd.c: * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it causes execve to fail intermittently. (rdar://4685553) * generic/tclTomMath.h: on Darwin 64-bit, for now disable use of 128-bit arithmetic through __attribute__ ((mode(TI))), as it leads to link errors due to missing fallbacks. (rdar://4685527) * macosx/Tcl.xcodeproj/project.pbxproj: add x86_64 to universal build, switch native release targets to use DWARF with dSYM, Xcode 3.0 changes. * macosx/README: updates for x86_64 and Xcode 2.3. * macosx/Tcl.xcodeproj/default.pbxuser: add test suite target that runs * macosx/Tcl.xcodeproj/project.pbxproj: the tcl test suite at build time and shows clickable test suite errors in the GUI build window. * tests/macOSXFCmd.test: fix use of deprecated resource fork paths. * unix/tclUnixInit.c (TclpInitLibraryPath): move code that is only needed when TCL_LIBRARY is defined to run only in that case. * generic/tclLink.c (LinkTraceProc): fix 64-bit signed-with-unsigned comparison warning from gcc4 -Wextra.
* Error message consistency improvements. [Bug 1534628]dkf2006-08-091-5/+5
|
* Fix silly error in error handling for uncompiled [dict for]. [Bug 1531184]dkf2006-08-091-1/+4
|
* * tests/compExpr-old.test: add 'oldExprParser' constraint to all testsdas2006-08-029-205/+241
| | | | | | | | | | | * tests/compExpr.test: that depend on the exact format of the error * tests/compile.test: messages of the pre-2006-07-05 expression * tests/expr-old.test: parser. The constraint is on by default (i.e. * tests/expr.test: those test still fail), but it can be turned * tests/for.test: off by passing '-constraints newExprParser' * tests/if.test: to tcltest, which will skip the 196 failing * tests/parseExpr.test: tests in the testsuite that are caused by * tests/while.test: the new expression parser error messages.