summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Bug 1426279Kevin B Kenny2006-07-311-1/+40
|
* Fixed Bug 1494664Kevin B Kenny2006-07-301-1/+19
|
* Fixed Bug 1505383Kevin B Kenny2006-07-301-1770/+2299
|
* * generic/tclExecute.c: Corrected flawed overflow detection indgp2006-07-261-1/+5
| | | | | * tests/expr.test: INST_EXPON that caused [expr 2**64] to return 0 instead of the same value as [expr 1<<64].
* * generic/tclExecute.c:Miguel Sofer2006-07-211-1/+15
| | | | * tests/execute.test (execute-9.1): dgp's fix for [Bug 1522803].
* * generic/tclParseExpr.c: Completely new expression parserdgp2006-07-053-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that builds a parse tree instead of operating with deep recursion. This corrects reports of stack-blowing crashes parsing long expressions [Bug 906201] and replaces a fundamentally O(N^2) algorithm with an O(N) one [RFE 903765]. The new parser is better able to generate error messages that clearly report both the nature and context of the syntax error [Bugs 1029267, 1381715]. For now, the code for the old parser is still present and can be activated with a "#define OLD_EXPR_PARSER 1". This is for the sake of a clean implementation patch, and for ease of benchmarking. The new parser is non-recursive, so much lighter in stack consumption, but it does use more heap, so there may be cases where parsing of long expressions that succeeded with the old parser will lead to out of memory panics with the new one. There are still more improvements possible on that point, though significant progress may require changes to the Tcl_Token specifications documented for the public Tcl_Parse*() routines. ***POTENTIAL INCOMPATIBILITY*** for any callers that rely on the exact (usually terrible) error messages generated by the old parser. This includes a large number of tests in the test suite. * generic/tclInt.h: Replaced TclParseWhiteSpace() with * generic/tclParse.c: TclParseAllWhiteSpace() which is what * generic/tclParseExpr.c: all the callers really needed. Breaking whitespace runs at newlines is useful only to the command parsing function, and it can call the file scoped routine ParseWhiteSpace() to do that. * tests/expr-old.test: Removed knownBug constraints that masked * tests/expr.test: failures due to revised error messages. * tests/parseExpr.test:
* * generic/tclMain.c (Tcl_Main): Corrected flaw that requireddgp2006-05-051-1/+22
| | | | | | * tests/main.test: (Tcl_Main-4.5): processing of one interactive command before passing control to the loop routine registered with Tcl_SetMainLoop() [Bug 1481986].
* * doc/DoubleObj.3: More doc updates for TIP 237.dgp2006-04-251-1/+5
| | | | | | | | * doc/scan.n: * generic/tclScan.c: [scan $s %u] is documented to accept only * tests/scan.test: decimal formatted integers. Fixed code to match.
* fix for Martin Lemburg's DST conversion bug.Kevin B Kenny2006-04-191-1/+14
| | | | http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0
* * generic/tclTrace.c: Stop some interference between enter tracesdgp2006-04-111-1/+38
| | | | * tests/trace.test: and enterstep traces. [Bug 1458266]
* * generic/tclPathObj.c: Yet another revised fix for the [Bug 1379287]dgp2006-04-071-0/+20
| | | | * tests/fileSystem.test: family of path normalization bugs.
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seemsdgp2006-04-061-3/+7
| | | | | | | * tests/indexObj.test: there are extensions that rely on the prior * doc/GetIndex.3: behavior that the empty string cannot succeed as a unique prefix matcher, so I'm restoring Donal Fellow's solution. Added mention of this detail to the documentation. [Bug 1464039]
* * tests/compExpr-old.test: Updated testmathfunctions constraintdgp2006-04-067-16/+18
| | | | | | | | | | * tests/compExpr.test: to post-TIP-232 world. * tests/expr-old.test: * tests/expr.test: * tests/info.test: * tests/indexObj.test: Corrected other test errors revealed by * tests/upvar.test: testing outside the tcltest application.
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-053-8/+11
| | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
* Ooopsdkf2006-04-051-2/+2
|
* Nail [Bug 1464039] by allowing the empty string to be exactly matched bydkf2006-04-051-1/+17
| | | | Tcl_GetIndexFromObj. Also added tests.
* * generic/tclPathObj.c: More fixes for path normalization when /../dgp2006-03-291-0/+40
| | | | * tests/fileSystem.test: tries to go beyond root.[Bug 1379287]
* Change the "pc" constraint to synonym "win" for consistency with thedgp2006-03-271-5/+5
| | | | rest of the Tcl test suite.
* * generic/tclExecute.c: Corrections to INST_EXPON detection ofdgp2006-03-251-1/+2
| | | | overflow to use mp_int calculations.
* * generic/tclExecute.c: Revised INST_EXPON implementation to dodgp2006-03-241-1/+7
| | | | | calculations in native types as much as possible, moving to mp_ints only when necessary.
* * tests/env.test: With case preserved (see 2006-03-21 commit)dgp2006-03-231-2/+2
| | | | be sure to do case-insensitive filtering. [Bug 1457065]
* * tests/stack.test: Run the stack tests in subshells, so that theyrmax2006-03-221-29/+29
| | | | | are reported as failed tests rather than bugs in the test suite if the recursion causes a segfault.
* typodgp2006-03-211-2/+2
|
* Committed test cases for Bug 1451233dgp2006-03-211-1/+11
|
* Added knownBug constraints.dgp2006-03-213-7/+7
|
* * tests/env.test: Preserve case of saved env vars. [Bug 1409272]dgp2006-03-211-15/+9
|
* typodgp2006-03-212-4/+4
|
* revert broken commitdgp2006-03-211-2/+2
|
* Use test constraints properly instead of looking in tcl_platformdkf2006-03-2134-441/+322
| | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* * generic/tclInt.decls: implement globbing for HFS creator & typedas2006-03-211-8/+50
| | | | | | | | | * macosx/tclMacOSXFCmd.c: codes and 'hidden' flag, as documented in * tests/macOSXFCmd.test: glob.n; objectified OSType handling in [glob] * unix/tclUnixFile.c: and [file attributes]; fix globbing for hidden files with pattern==NULL arg. [Bug 823329] * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: make genstubs
* Clean up constraint handlingdkf2006-03-201-11/+5
|
* Clean up the constraint handlingdkf2006-03-201-21/+16
|
* correct [makeFile] syntaxdgp2006-03-201-3/+3
|