summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * msgcat.n: Added docs for new behavior from patch in [Bug: 4158].ericm2000-04-111-4/+98
| | | | | | | | | | | | | * msgcat.test: Added tests for new behavior from patch in [Bug: 4158]. * msgcat.tcl: Applied patch from [Bug: 4158], which enables msgcat::mc to search the entire namespace ancestry chain for message translations (ie, first it checks the current namespace, then the parent, then the parent's parent, etc). Also allows the specification of additional args for msgcat::mc; if extra args are given, the [format] command is used to substitute the additional args in the translated message.
* * win/tclWinPipe.c (TclpCreateTempFile): Added conversion ofericm2000-04-101-1/+24
| | | | | | | | contents string from UTF to native encoding [Bug: 4030]. * tests/regexp.test: Added tests for infinite looping in [regexp -all]. * generic/tclCmdMZ.c: Fixed infinite loop bug with [regexp -all] [Bug: 4981].
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-10121-248/+248
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/reg.test (matchexpected): corrected tests to use tcltesthobbs2000-04-101-18/+27
| | | | constraint types to skip certain tests.
* Added "server closes without reading post data" case.welch2000-04-092-48/+146
|
* * tests/fCmd.test: marked test 8.1 knownBug because it ishobbs2000-04-081-12/+17
| | | | | dangerous on poorly configured systems [Bug: 3881] and added 8.2 to keep essence of 8.1 tested.
* * tests/foreach.test:hobbs2000-04-044-35/+35
| | | | | | * tests/namespace.test: * tests/var.test: Added lsorts to avoid random sorted return problems. [Bug: 2682]
* * generic/tclGet.c (Tcl_GetDouble): Added additional conditions toericm2000-03-311-1/+8
| | | | | | | | | | | | | | | | | error test (previously only errno was checked, but the return value of strtod() should be checked as well). [Bug: 4118]. * tests/exec.test: Added test for proper conversion of UTF data when used with "<< $dataWithUTF" on exec's. * unix/tclUnixPipe.c (TclpCreateTempFile): Added Tcl_UtfToExternalDString call, so that if there is UTF content in the string it will be properly converted to the system encoding before being written [Bug: 4030]. (TclpCreateTempFile): Added a check on the return value of tmpnam; some systems (Linux, for example) will start to return NULL after tmpnam has been called TMP_MAX times; not checking for this can have bad results (overwriting temp files, core dumps, etc.)
* * tests/httpd: removed unnecessary 'puts stderr "Post Dispatch"'hobbs2000-03-272-4/+3
| | | | | | | * tests/namespace.test: * generic/tclNamesp.c (Tcl_Export): added a uniq'ing test to the export list so only one instance of each export pattern would exist in the list.
* * tests/clock.test: Modified some tests that were not robust withericm2000-03-211-11/+14
| | | | | | | | | respect to the time zone in which they were run and were thus failing. * doc/clock.n: Clarified meaning of -gmt with respect to -base when used with [clock scan] (-gmt does not affect the interpretation of -base).
* * library/http2.1/http.tcl: Added -querychannel option and alteredsandeep2000-03-191-4/+38
| | | | | | | | | | | | | | | | | | | | | | some of Brent's modifications to allow asynchronous posts (via -command). Also modified -queryprogress so that it calls the query callback as <callback> <token> <total size> <current size> to be consistent with -progress. Added -queryblocksize option with default 8192 bytes for post blocksize. Fixed a bunch of potential memory leaks for the case when geturl receives bad args or can't open a socket, etc. Overall, the package really rocks now. * doc/http.n: Added -queryblocksize, -querychannel, and -queryprogress. Also, changed the description of -blocksize, which states that the -progress callback will be called for each block, to now qualify that with an "if -progress is specified". * tests/http.test: Added a querychannel test for synchronous and asynchronous posts, altered the queryprogress test such that the callback conforms to the -progress format. Also, had to use the -queryblocksize option to do the post 16K at a time to match Brent's expected results (and to test that -queryblocksize works).
* Added tests for -queryprogresswelch2000-03-172-26/+63
|
* * tests/clock.test: Added test for ISO bases < 100000ericm2000-02-281-1/+5
| | | | | | | * generic/tclDate.c: (generated on Solaris) * generic/tclGetDate.y: Changed condition for deciding if a number is an ISO 8601 base from number >= 100000 to numberOfDigits >= 6. Previously it would fail to recognize 000000 as an ISO base.
* * unix/README:hobbs2000-02-101-1/+5
| | | | | | | | | | | | | | | | * unix/Makefile.in (dist): removed porting.notes and porting.old from distribution and CVS. The information was very outdated. Now refer to http://dev.scriptics.com/services/support/platforms.html * tests/unixInit.test: fixed japanese LANG encoding test [Bug: 3549] * unix/configure.in: * unix/tcl.m4: correct CFLAG_WARNING setting, fixed gcc config for AIX, added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998] * win/tclWinLoad.c (TclpLoadFile): improved error message for load failures, could perhaps be even more intelligent.
* * tests/clock.test: Added tests for "next monthname" constructs.ericm2000-02-091-12/+14
| | | | | | | * generic/tclDate.c: * generic/tclGetDate.y (Message): Added a grammar rule for "next monthname" so that we can handle "next january" and similar constructs (bug #4146).
* * tests/package.test:ericm2000-02-071-33/+33
| | | | | * library/tclIndex: * library/package.tcl: Renamed ::package namespace to ::pkg.
* Removing struct namespace stuff.ericm2000-02-072-414/+0
|
* * tests/httpold.test: changed test script to source in the httpdhobbs2000-02-051-149/+6
| | | | server procs from httpd instead of having its own set.
* * tests/httpd: improved query support in test httpd to handle fixhobbs2000-02-051-1/+17
| | | | in http.tcl. [Bug: 4089 change 2000-02-01]
* * doc/tree.n:ericm2000-02-052-0/+414
| | | | | | | | | | | | | | | | | | | * doc/stack.n: * doc/queue.n: docs for tree, stack, and queue. * win/Makefile.in: * unix/Makefile.in: Added struct1.0 to list of libraries to install. * tests/stackstruct.test: stack tests * tests/queue.test: queue tests * library/struct1.0/queue.tcl: queue data structure. * library/struct1.0/stack.tcl: stack data structure. * library/struct1.0/pkgIndex.tcl: * library/struct1.0/struct.tcl: data structure package
* * tests/regexp.test: added tests for -all and -inline switcheshobbs2000-02-021-12/+50
| | | | | | * doc/regexp.n: added docs for -all and -inline switches * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): added extra comments for new -all and -inline switches to regexp command
* * tests/package.test:ericm2000-02-011-0/+71
| | | | | | | | | | | | | | | | | * library/tclIndex: * library/package.tcl: Added ::package namespace and ::package::create function. * library/init.tcl: Fixed problem with auto_load and determining if commands were loaded. * library/auto.tcl: "Fixed" issues with $ in files to be auto indexed. * doc/Package.n: New man page for package::create function. * doc/pkgMkIndex.n: Added additional information. * doc/library.n: Added additional qualification regarding auto_mkindex.
* * tests/pkg/magicchar2.tcl:ericm2000-01-292-1/+14
| | | | | | | | | * tests/autoMkindex.test: Test for auto loader fix (bug #2480). * library/init.tcl: auto_load was using [info commands $name] to determine if a given command was available; if the command name had * or [] it, this would fail because info commands uses glob-style matching. This is fixed. (Bug #2480).
* * tests/pkg/spacename.tcl:ericm2000-01-282-1/+10
| | | | | | | * tests/pkgMkIndex.test: Tests for fix for bug #2360. * library/package.tcl: Fixed to extract only the first element of the list returned by auto_qualify (bug #2360).
* * tests/pkg/magicchar.tcl:ericm2000-01-282-1/+19
| | | | | | | | | * tests/autoMkindex.test: Test for fix for bug #2611. * library/auto.tcl: Fixed the regular expression that performs $ escaping before sourcing a file to index. It was erroneously adding \ escapes even to $'s that were already escaped, effectively "un-escaping" those $'s. (bug #2611).
* * tests/autoMkindex.test:ericm2000-01-281-1/+12
| | | | | | * library/auto.tcl: Applied patch (with slight modification) from bug #2701: auto_mkIndex uses platform dependent file paths. Added test for fix.
* * library/tcltest1.0/tcltest.tcl: Changed NormalizePath tojenn2000-01-271-9/+2
| | | | | | | | normalizePath and exported it as a public proc. This proc creates an absolute path given the name of the variable containing the path to modify. The path is modified in place. * library/tcltest1.0/pkgIndex.tcl: Added normalizePath. * tests/all.tcl: Changed code to use normalizePath.
* * tests/pkg/samename.tcl: test file for bug #1983ericm2000-01-272-1/+34
| | | | | | | | * tests/pkgMkIndex.test: * library/package.tcl: Fixed bug #1983, dealing with pkg_mkIndex incorrectly handling situations with two procs by the same name but in different namespaces (ie, foo::baz and bar::baz).
* * tests/pkgMkIndex.test:ericm2000-01-271-13/+17
| | | | | | | | * doc/pkgMkIndex.n: * library/package.tcl: Per rfe #4097, optimized creation of direct load packages to bypass computing the list of commands added by the new package. Also made direct loading the default, and added a -lazy option.
* * generic/tclNamesp.c: Undid fix for #956, which broke backwardsericm2000-01-261-8/+1
| | | | | | | | | | | | | compatibility. * doc/variable.n: * doc/trace.n: * doc/namespace.n: * doc/info.n: Added further information about differences between "namespace which" and "info exists". * doc/SetErrno.3: Added descriptions of ErrnoId() and ErrnoMsg() functions.
* * namespace.test: Added test for undefined variables withericm2000-01-211-1/+8
| | | | | | | namespace which (bug #956). * tclNamesp.c: Added check for undefined variables in NamespaceWhichCmd (bug #956).
* added test for [info body] bytecompiled object bughobbs2000-01-211-1/+16
|
* * var.test: Added tests for corrected variable behavior (bug #981).ericm2000-01-211-1/+15
| | | | | | | | | | * upvar.n: Expanded explanation of upvar behavior with respect to variable traces. (bugs 3917 1433 2110). * tclVar.c: Changed behavior of variable command when name refers to an element in an array (ie, "variable foo(x)") to always return an error, regardless of existance of that element in the array (now behavior is consistant with docs too) (bug #981).
* added catch {unset t} for atomic testhobbs2000-01-211-13/+2
|
* set.test: added test for complex array elem name compilinghobbs2000-01-211-1/+27
|
* * tests/var.test: Added a test for the array multiple deleteericm2000-01-151-1/+14
| | | | | | | | | | | protection in Tcl_UnsetVar2. * generic/tclVar.c: Added protection in Tcl_UnsetVar2 against attempts to multiply delete arrays when unsetting them (bug #3453). This could happen if there was an unset trace on an array element and the trace proc made a global or upvar link to the array, and then the array was unset at the global level. See the bug reference for more information.
* * unix/tclUnixTime.c: New clock format format.ericm2000-01-141-5/+5
| | | | | | * compat/strftime.c: New clock format format. * generic/tclGetDate.y: New clock scan format.
* * tests/cmdIL.test: Added tests for lsort -dictionary withericm2000-01-131-1/+19
| | | | | | | | | | characters that occur between Z and a in ASCII. * generic/tclCmdIL.c: Modified DictionaryCompare function (used by lsort -dictionary) to do upper/lower case equivalency before doing character comparisons, instead of after. This fixes bug #1357, in which lsort -dictionary [list ` AA c CC] and lsort -dictionary [list AA c ` CC] gave different (and both wrong) results.
* * tests/clock.test: Added tests for "monday 1 week ago", etc, from RFE #3671.ericm2000-01-131-2/+59
|
* * tests/clock.test: Added tests for "next <day-of-week>" andericm2000-01-121-1/+17
| | | | "<day-of-week>"
* * doc/tests/clock.test: Added numerous tests for clock scan.ericm2000-01-121-1/+101
| | | | | | | | | * doc/generic/tclGetDate.y: Fixed some shift/reduce conflicts in clock grammar. * doc/doc/clock.n: Added documentation for new supported clock scan formats and additional explanation of daylight savings time correction algorithm.
* * tests/info.test:hobbs2000-01-125-9/+99
| | | | | | | | | | | * generic/tclCmdIL.c: fixed 'info procs ::namesp::*' behavior (Dejong) * tests/unixFCmd.test: * unix/tclUnixFCmd.c: added support for symbolic permissions setting in SetPermissionsAttribute (file attr $file -perm ...) [Bug: 3970] * tests/utf.test: fixed test that allowed \8 as octal value
* * tests/cmdIL.test:hobbs1999-12-211-5/+12
| | | | * generic/tclCmdIL.c: added -unique option to lsort
* * doc/glob.n:hobbs1999-12-121-5/+123
| | | | | | | | | | | | | | | | * tests/fileName.test: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclEncoding.c: * generic/tclFileName.c: * mac/tclMacFile.c: * unix/tclUnixFile.c: * win/tclWinFile.c: enhanced the glob command with the new options -types -path -directory and -join. Deprecated TclpMatchFiles with TclpMatchFilesTypes, extended TclGlob and TclDoGlob and added GlobTypeData structure.
* * tests/info.test:hobbs1999-12-123-21/+35
| | | | | | | | | | * tests/parseOld.test: * generic/tclCmdAH.c: * generic/tclProc.c: changed Tcl_UplevelObjCmd (uplevel) and Tcl_EvalObjCmd (eval) to use TCL_EVAL_DIRECT in the single arg case as well, to take advantage of potential pure list input optimization. This means that it won't get byte compiled though, which should be acceptable.
* * tests/io.test: removed 'knownBug' tests that were forhobbs1999-12-081-68/+1
| | | | unsupported0, which is now fcopy (that already has tests)
* * tests/env.test: removed knownBug limitation from working testhobbs1999-12-046-13/+36
| | | | | | | | | | | | | | | | | | * tests/all.tcl: ensured that ::tcltest::testsDirectory would be set to an absolute path * tests/expr-old.test: * tests/parseExpr.test: * tests/string.test: * generic/tclGet.c: * generic/tclInt.h: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclUtil.c: * generic/tclExecute.c: added TclCheckBadOctal routine to enhance error message checking for when users use invalid octal numbers (like 08), as well as replumbed the Expr*Funcs with a new VerifyExprObjType to simplify type handling.
* * tests/scan.test:hobbs1999-11-301-1/+5
| | | | | * generic/tclScan.c: fixed scan where %[..] didn't match anything and added test case [Bug: 3700]
* Took out "nonPortable" flag that was hiding -timeout tests,welch1999-11-221-4/+45
| | | | plus added more timeout cases for various bad host/port combinations.
* updated to 2.2 version for httphobbs1999-11-201-5/+5
|