summaryrefslogtreecommitdiffstats
path: root/tests/exec.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-01-23 17:43:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-01-23 17:43:19 (GMT)
commit889858de26753cb512fda204a65783c308b7b576 (patch)
tree68cc9be40d0e5990bd54b225a59df977dd068811 /tests/exec.test
parent40a794e7c84fac5d968985b3ac2f1507fe2e800c (diff)
downloadtcl-889858de26753cb512fda204a65783c308b7b576.zip
tcl-889858de26753cb512fda204a65783c308b7b576.tar.gz
tcl-889858de26753cb512fda204a65783c308b7b576.tar.bz2
Backport patch 2834a01435 to prevent test failures from timing matters.
Diffstat (limited to 'tests/exec.test')
-rw-r--r--tests/exec.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/exec.test b/tests/exec.test
index 8d36292..46d4d92 100644
--- a/tests/exec.test
+++ b/tests/exec.test
@@ -312,8 +312,8 @@ test exec-9.6 {commands returning errors} {exec} {
list [catch {exec [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2"} msg] $msg
} {1 {error msg}}
test exec-9.7 {commands returning errors} {exec stdio} {
- list [catch {exec [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2" \
- | [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2"} msg] $msg
+ list [catch {exec [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2 ; \"$path(sleep)\" 1" \
+ | [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2 ; \"$path(sleep)\" 1"} msg] $msg
} {1 {error msg
error msg}}