diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-25 09:35:49 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-25 09:35:49 +0100 |
commit | 5deea302b0c594b267e0450bdbb82954d2459a61 (patch) | |
tree | d79b3e8843fef0e653b5d4d891369ceaef3b54c5 /tests/diag.sh | |
parent | 2f8b5cafd0dcc5f09b7b64f5015a2aebd1c7b31c (diff) | |
download | rsyslog-5deea302b0c594b267e0450bdbb82954d2459a61.tar.gz rsyslog-5deea302b0c594b267e0450bdbb82954d2459a61.tar.xz rsyslog-5deea302b0c594b267e0450bdbb82954d2459a61.zip |
replaced sleep in test suite by a small self-crafted tool
subsecond sleep did not work on all platforms
Diffstat (limited to 'tests/diag.sh')
-rwxr-xr-x | tests/diag.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/diag.sh b/tests/diag.sh index 08e94548..173219da 100755 --- a/tests/diag.sh +++ b/tests/diag.sh @@ -37,16 +37,14 @@ case $1 in ;; 'wait-startup') # wait for rsyslogd startup ($2 is the instance) while test ! -f rsyslogd$2.started; do - true - #sleep 0.1 # if this is not supported by all platforms, use above! + ./msleep 100 # wait 100 milliseconds done echo "rsyslogd$2 started with pid " `cat rsyslog$2.pid` ;; 'wait-shutdown') # actually, we wait for rsyslog.pid to be deleted. $2 is the # instance while test -f rsyslog$2.pid; do - #true - sleep 0.1 # if this is not supported by all platforms, use above! + ./msleep 100 # wait 100 milliseconds done ;; 'wait-queueempty') # wait for main message queue to be empty. $2 is the instance. |