summaryrefslogtreecommitdiffstats
path: root/tests/winPipe.test
Commit message (Collapse)AuthorAgeFilesLines
* merge 8.6sebres2018-11-221-1/+7
|\
| * merge 8.5: fixes segfault [7a9dc52b29] and wrong normalization (inside ↵sebres2018-11-221-1/+7
| |\ | | | | | | | | | TclJoinPath) for pure relative path-segments; test-cases extended and several windows-related are fixed.
| | * win: fixed pwd-related test-cases in winPipe.test: several test-cases expect ↵sebres2018-11-201-1/+7
| | | | | | | | | | | | current directory equals [temporaryDirectory]
* | | merge 8.6dgp2018-10-171-0/+1
|\ \ \ | |/ /
| * | Revert addition of "slowTest" as built-in constraint. (no TIP; no version bump).dgp2018-10-171-0/+1
| | | | | | | | | Let the test file that needs the constraint define it with existing facilities.
* | | Merge 8.6jan.nijtmans2018-10-121-2/+3
|\ \ \ | |/ /
| * | Use the 4 argument form of [makeFile].dgp2018-10-091-2/+3
| | |
* | | Balance the [makeFile/makeDirectory] and [removeFile/removeDirectory] calls ↵dkf2018-10-091-5/+4
|\ \ \ | |/ / | | | | | | (conditional now, so avoids warnings in filter/constraint cases).
| * | Balance the [makeFile/makeDirectory] and [removeFile/removeDirectory] calls ↵sebres2018-10-091-5/+4
| | | | | | | | | | | | (conditional now, so avoids warnings in filter/constraint cases).
* | | Merge 8.6jan.nijtmans2018-09-231-2/+2
|\ \ \ | |/ /
| * | Give lambda function a name "ReceiveChunked" for easier testing. New ↵jan.nijtmans2018-09-231-3/+3
| | | | | | | | | | | | function quoteString and code cleanup
* | | merge 8.6sebres2018-08-301-0/+30
|\ \ \ | |/ /
| * | merge 8.5sebres2018-08-301-0/+30
| |\ \ | | |/
| | * test-cases to cover quoting of the newline character, and the documentation ↵sebres2018-08-301-0/+30
| | | | | | | | | | | | extended.
* | | merge 8.6sebres2018-08-291-60/+190
|\ \ \ | |/ /
| * | merge 8.5 ([21b0629c81] 0-day vulnerability - insufficient escape by exec of ↵sebres2018-08-291-60/+190
| |\ \ | | |/ | | | | | | batch-files for windows)
| | * code review, skip slow test winpipe-8.2 executed args from injectList ↵sebres2018-08-231-2/+33
| | | | | | | | | | | | particularly (normally winpipe-8.3 covers the same but jointly), to enable use parameter `-constraints slowTest`, added new test with randomly generated potentially dangerous args
| | * code review, restored backwards compatibility of the simplest escape of ↵sebres2018-08-231-4/+4
| | | | | | | | | | | | quote-chars (so reverted several tests winpipe-7.x)
| | * fixes escape for special cases (+ more test-cases):sebres2018-08-211-1/+29
| | | | | | | | | | | | - `%` char to be escaped (quoted) in any case (regardless pairing flag), otherwise `%username%` will be interpolated as username. - escape of multiple backslashes before quote is different (as without following quote) in unpaired quote syntax (upaired flag set)
| | * because executable (1st argument) always proper escaped now, don't need to ↵sebres2018-08-201-11/+33
| | | | | | | | | | | | replace long path name of batch-executable with short path name (reduced to 16-bit applications only).
| | * small amend: avoid reset of unpaired quote flag between arguments (previous ↵sebres2018-08-201-61/+108
| | | | | | | | | | | | affects next) + test cases extended with several injection checks.
| | * win: fixes [21b0629c81] - exec/open process pipe under windows (0-day ↵sebres2018-08-201-4/+4
| | | | | | | | | | | | vulnerability - insufficient escape)
| | * win: some test-cases missing constraint for testexcept (if compiled without ↵sebres2018-04-111-4/+5
| | | | | | | | | | | | test)
* | | Add "file join $grandParentDir tcl8.? library" as possible path for a valid ↵jan.nijtmans2016-12-151-3/+3
| | | | | | | | | | | | | | | init.tcl. Some simplifications in use of test restrictions.
* | | Eliminate exess spacings in many test-casesjan.nijtmans2016-03-101-2/+2
|/ /
* | Remove all win95-specific test-cases, since Windows 95 is not supported any ↵jan.nijtmans2014-04-171-8/+0
| | | | | | | | more.
* | fix winPipe.test tests, when running with tcltest86.dlljan.nijtmans2012-07-301-1/+12
| |
* | fix filesystem-7.1.x tests in install environment [3549770], as suggested by ↵jan.nijtmans2012-07-301-4/+5
| | | | | | | | | | Twylite temporary workaround for winPipe failing tests (still work to do)
* | 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.
| | * * tests/winPipe.test (winpipe-6.2): remove -blocking 1 as this onehobbs2005-04-201-2/+1
| | | | | | | | | | | | can truly block.
| | * * win/tclWinPipe.c: The pipe channel driver now respectsdavygrvy2005-04-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the -blocking option when closing. The windows pipe driver now has the same behavior as the UNIX side. This change is to avoid a hung shell when exiting due to open pipes that refuse to close in a graceful manner. * doc/open.n: Added a note about -blocking 0 and lack of exit status as it had never been documented. [Bug 947693] ***POTENTIAL INCOMPATIBILITY*** Scripts that use async pipes on windows, must (like the UNIX side) set -blocking to 1 before calling [close] to receive the exit status. * tests/winPipe.test (winpipe-6.1/2): added 'fconfigure $f -blocking 1' so the exit status can be acquired.
| | * * tests/appendComp.test: Backport test suite fixes of errorsdgp2004-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
| | * backport of BuildCommandLine changes to mirror msvcrt's parse_cmdline() ↵davygrvy2004-02-251-5/+115
| | | | | | | | | | | | rules of quoting
* | | Clean up of tests and conversion to tcltest 2. Target has been to get init anddkf2011-01-011-9/+10
| | | | | | | | | | | | cleanup code out of the test body and into the -setup/-cleanup stanzas.
* | | * tests/winPipe.test: Test hygiene with makeFile and removeFile.dgp2010-10-061-11/+16
|/ /
* | Rename constraint to look more conventionaldkf2006-11-031-15/+11
| |
* | Fixed non-robustness error when opening subshell pipes when the current ↵dkf2006-11-021-12/+12
| | | | | | | | | | | | directory has a space in the name
* | tests/winPipe.test (winpipe-1.11): Fixed a bug that causedKevin B Kenny2004-07-021-2/+2
| | | | | | | | | | test to fail if the path name of the working directory contained whitespace [Bug 678430]
* | Standardize some use of test constraints onto names that are documenteddkf2004-06-231-72/+71
| |
* | * tests/winPipe.c (winpipe-6.1): blocking set to 1 before closing to ensuredavygrvy2004-06-021-1/+2
| | | | | | | | | | we get an exitcode. The windows pipe channel driver doesn't differentiate between a blocking and non-blocking close just yet, but will soon.
* | * tests/winPipe.test: Protect against path being setdgp2004-05-251-1/+2
| | | | | | | | | | | | * tests/unixInit.test: Unset path when done. * tests/unload.test (unload-3.1): Verify [pkgb_sub] does not exist. Delete interps when done.
* | Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-5/+4
| | | | | | | | necessary.
* | * tests/winPipe.test: Six more cases added.davygrvy2004-02-021-6/+24
| | | | | | | | | | * win/tclWinPipe.c: Fixed BuildCommandLine() to pass the new cases.
* | * tests/winPipe.test: more cases with the "N backslashesdavygrvy2004-02-021-6/+9
| | | | | | | | | | followed a quote -> insert N * 2 + 1 backslashes then a quote" rule needed for the crt's parse_cmdline().
* | * tests/winPipe.test: Added proof that BuildCommandLine() is not doing thedavygrvy2004-02-011-18/+42
| | | | | | | | | | "N backslashes followed a quote -> insert N * 2 + 1 backslashes then a quote" rule needed for the crt's parse_cmdline().
* | * tests/winPipe.test: more pass-thru commandline verifications.davygrvy2004-02-011-5/+73
|/ | | | | | | * win/tclWinPipe.c (BuildCommandLine): Special case quoting for '{' not required by the c-runtimes's _setargv(). * win/tclAppInit.c: Removed our custom setargv() in favor of the one provided by the c-runtime. [Bug 672938]
* * generic/tclPipe.c (TclCleanupChildren):davygrvy2002-12-171-1/+29
| | | | | | | | | | | | | | * tests/winPipe.c: * win/tclWinPipe.c (Tcl_WaitPid): * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32 exception code translated into a posix style SIG*. This allows [close] to report "CHILDKILLED" without the meaning getting lost in a truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get moved to before Tcl_WaitPid() as the the handle is removed from the list taking away the ability to get the process id after the wait is done. This shouldn't effect the unix implimentaion unless waitpid is called with a pid of zero, meaning "any". I don't think it is..
* pcOnly constraints addedvincentdarley2002-07-181-6/+6
|