diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-03-01 12:30:17 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-03-01 12:30:17 +0100 |
commit | 8951d66168e9f95f0eb499a83c7f4ad1c504045e (patch) | |
tree | c085417e97b2f9246a1cb883ce6b890285fa6126 /tests/manual/process | |
parent | 196d7b0cf4bc456b195393f36c1a092c8532208f (diff) |
VCS[git]: Timeout, add missing test script.
Task-number: QTCREATORBUG-777
Diffstat (limited to 'tests/manual/process')
-rwxr-xr-x | tests/manual/process/slowprocess.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/manual/process/slowprocess.sh b/tests/manual/process/slowprocess.sh new file mode 100755 index 00000000000..0a9cf1687b0 --- /dev/null +++ b/tests/manual/process/slowprocess.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# Emulate a slow process with continous output + +I=0 +STDERR=0 +if [ " $1" = " -e" ] +then + echo stderr + STDERR=1 + shift 1 +fi + +while [ $I -lt 20 ] +do + if [ $STDERR -ne 0 ] + then + echo $I 1>&2 + else + echo $I + fi + I=`expr $I + 1` + sleep 1 +done |