tests: replace non-portable "date +%s" with ruby equivalent
commit0ba6fc3c30b9cf530faf7fcf5ce7be519ec13fe7
authorEric Wong <normalperson@yhbt.net>
Thu, 24 Jan 2013 23:13:41 +0000 (24 23:13 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 1 Feb 2013 21:46:27 +0000 (1 21:46 +0000)
tree90fe5c93c6b05a8a8613d6557dfcb3a10f68de9d
parentcbff7b0892148b037581541184364e0e91d2a138
tests: replace non-portable "date +%s" with ruby equivalent

"date +%s" is not in POSIX (it is in GNU, and at least FreeBSD
9.0, possibly earlier).  The Ruby equivalent should be
sufficiently portable between different Ruby versions.

This change was automated via:
perl -i -p -e 's/date \+%s/unix_time/' t/*.sh
17 files changed:
t/t0003-reopen-logs.sh
t/t0004-heartbeat-timeout.sh
t/t0010-keepalive-timeout-effective.sh
t/t0011-close-on-exec-set.sh
t/t0017-keepalive-timeout-zero.sh
t/t0043-quit-keepalive-disconnect.sh
t/t0100-rack-input-hammer-chunked.sh
t/t0100-rack-input-hammer-content-length.sh
t/t0200-async-response.sh
t/t0202-async-response-one-oh.sh
t/t0300-async_sinatra.sh
t/t0400-em-async-app.sh
t/t0401-em-async-tailer.sh
t/t0402-async-keepalive.sh
t/t0500-cramp-streaming.sh
t/t9000-rack-app-pool.sh
t/test-lib.sh