summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
Commit message (Collapse)AuthorAgeFilesLines
* merge core-8-6-branchjan.nijtmans2017-06-081-1/+1
|\
| * tclUtil.c: Use TclUtfToUniChar() in stead of handling ASCII characters ↵jan.nijtmans2017-06-081-1/+1
| | | | | | | | | | separately: This macro already does that. Add new test-case for Tcl_NumUtfChars(), for a knownBug still to be fixed.
| * Update documentation on recent changes in Tcl_LinkVar.jan.nijtmans2017-01-311-13/+1
| | | | | | | | Don't use TCL_NO_DEPRECATED for disabling tests-cases: Those were not deprecated in 8.6 yet. Minor code clean-up. No functional changes.
* | Merge Harald's "robust-async-connect-tests" branch. Thanks!jan.nijtmans2017-04-101-0/+85
|\ \
| * \ merge trunkjan.nijtmans2014-07-181-7/+48
| |\ \
| * | | Replaced option "-unsupported1" by test command "testsocket debugflags" ↵oehhar2014-07-171-0/+85
| | | | | | | | | | | | | | | | (thanks Donal, Donald).
* | | | Supply more C99-compatible (and MSVC) format options: '%p' for pointers, ↵jan.nijtmans2017-03-241-1/+3
| | | | | | | | | | | | | | | | | | | | 'z'/'j'/'I' for size_t/intptr_diff, 'j'/'q' for long long. Also add "I32" froom MSVC. Remove TCL_LL_MODIFIER specified as "L" for Borland: This must be wrong as "L" is meant for long double. Just assume that later Borland compilers are MSVC-compatible.
* | | | If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are ↵jan.nijtmans2017-03-201-4/+4
| | | | | | | | | | | | | | | | not used any more.
* | | | If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-12/+8
| | | | | | | | | | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
* | | | Use more Tcl_AppendResult(), in order to prevent the use of a (char *) type ↵jan.nijtmans2017-01-111-28/+28
| | | | | | | | | | | | | | | | case.
* | | | Merge core-8-6-branch. jan.nijtmans2017-01-111-27/+27
|\ \ \ \ | | |_|/ | |/| | | | | | Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const". Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
* | | | merge core-8-6-branchjan.nijtmans2017-01-011-1/+1
|\ \ \ \ | |/ / /
* | | | Record the fact that all stub-enabled extensions work in Tcl 8.5+, no 8.6 ↵jan.nijtmans2016-12-201-4/+4
| | | | | | | | | | | | | | | | (or 9.0) features are needed. (Differences between 8.x and 9.0 are handled by a different stub magic value)
* | | | Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be ↵jn_wide_printfjan.nijtmans2016-12-141-0/+42
| | | | | | | | | | | | | | | | "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases.
* | | | Fix harmless gcc warning message: using "unsigned" doesn't serve any ↵jan.nijtmans2016-11-111-3/+3
| | | | | | | | | | | | | | | | purpose, actually.
* | | | Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-12/+71
|\ \ \ \ | |/ / / | | | | | | | | literal sharing vs. per-interp resolvers
| * | | merge core-8-6-branchjan.nijtmans2016-09-051-13/+13
| |\ \ \
| * | | | Some patch clean-up, no change in functionalityjan.nijtmans2016-09-051-9/+9
| | | | |
| * | | | Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by ↵jan.nijtmans2016-09-021-19/+85
| | | | | | | | | | | | | | | | | | | | Gustaf Neumann
* | | | | merge core-8-6-branchjan.nijtmans2016-09-051-3/+10
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Allow additional optional "interp" argument for testinterpresolver command. ↵jan.nijtmans2016-09-051-3/+10
| |/ / / | | | | | | | | | | | | | | | | | | | | Not used yet in any test-case. Protect panic in tclLiteral.c for possible null-pointer access. (cherry-picked from Gustaf Neuman's interpresolver patch). Eliminate some unecessary spacing.
* | | | Merge core-8-6-branch: jan.nijtmans2016-07-071-2/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | New tests to demo the remaining flaw in ensemble dispatch revisions. Itcl 4 also demonstrated these [bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE Simplify all the Tcl_NRPostProc declarations Create and use a utility Tcl_NRPostProc when decr ref count of values is all that is needed Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows
| * | | Simplify all the Tcl_NRPostProc declarations.dgp2016-07-061-2/+1
| | | |
| * | | (cherry-pick): Fix gcc 5.3 warning: In function ‘NRInterpCmd’: ↵jan.nijtmans2016-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | tclInterp.c:726:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if ((i + 2) < objc) { Remove some excessive spacing
* | | | Eliminate internal use of TCL_STORAGE_CLASS, as it will be gone in 9.0 anywayjan.nijtmans2016-06-291-10/+2
| | | |
* | | | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-12/+12
| | | | | | | | | | | | | | | | which are deprecated.
* | | | Allow unstable Tcl releases to use unstable packages by default (this makes ↵jan.nijtmans2016-03-111-0/+35
| | | | | | | | | | | | | | | | "package require Tk" find the expected 8.7a0 version in stead of 8.6). Make many "package" test-cases work even when the environment variable TCL_PKG_PREFER_LATEST is set.
* | | | Fix gcc 5.3 warning: In function ‘NRInterpCmd’: tclInterp.c:726:5: ↵jan.nijtmans2016-03-041-1/+1
|/ / / | | | | | | | | | | | | | | | warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if ((i + 2) < objc) { Remove some excessive spacing
* | | Fix gcc'ism. Not all compilers can substract two void pointers.jan.nijtmans2016-01-291-3/+3
| | |
* | | Fix "make test" broken by previous commitjan.nijtmans2016-01-241-4/+4
| | |
* | | add a test to insure that callbacks run at the correct C-stack depth while ↵Miguel Sofer2016-01-231-0/+53
| | | | | | | | | | | | unwinding the NRE stack.
* | | One more Tcl_GlobalEval() usage.jan.nijtmans2016-01-181-1/+1
| | |
* | | Eliminate some usages of Tcl_GlobalEval() and Tcl_Eval(), which are ↵jan.nijtmans2016-01-181-6/+6
| | | | | | | | | | | | deprecated functions.
* | | Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|\ \ \
* | | | explicitly ignore Tcl_PushCallFrame and TclPushStackFrame return value - it ↵Miguel Sofer2015-08-011-5/+1
| | | | | | | | | | | | | | | | is always TCL_OK. Inconsistency found by coverity (CID 1251197)
* | | | Tcl_GetStringFromObj(..., NULL) -> Tcl_GetString(...). Use size_t in stead ↵jan.nijtmans2015-06-241-2/+2
| |_|/ |/| | | | | | | | of int for more internal variables.
* | | Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-161-7/+48
| |/ |/| | | | | New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding. Adapt many testcases to use the "testbytestring" command.
* | Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-3/+3
| | | | | | | | | | Clang/LLVM) don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* | Cleaned up test command trying to make valgrind happy.dgp2013-09-041-2/+20
| |
* | [a16752c252] Correct failure to call cmd deletion callbacks.dgp2013-08-141-3/+3
|\ \ | |/
| * [a16752c252] Correct failure to call cmd deletion callbacks.dgp2013-08-141-3/+3
| |
* | Don't use deprecated Tcl_DStringTrunc any morejan.nijtmans2013-06-251-1/+1
|\ \ | |/
| * Don't use deprecated Tcl_DStringTrunc any more.jan.nijtmans2013-06-251-1/+1
| |
* | If TCL_NO_DEPRECATED is defined, don't depend on ↵jan.nijtmans2013-03-221-4/+20
| | | | | | | | | | Tcl_CreateMathFunc()/Tcl_SaveResult() in testcases any more. Prevent endless loop in Tcl_AddObjErrorInfo, when TCL_NO_DEPRECATED is defined.
* | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ | |/
| * Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-6/+0
| |
* | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
|\ \ | |/ | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
| * revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
| | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
* | A few unneeded internal CONST/CONST86'sjan.nijtmans2012-11-161-1/+1
| |
* | make tclTest.c compilable against version 2 filesystemsjan.nijtmans2012-10-241-2/+3
|\ \ | |/