diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2022-07-25 01:29:10 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-07-25 03:05:27 +0200 |
commit | 0ff886be132299386cc29d87c2aa16ff68a1aa08 (patch) | |
tree | 237050dd633e77c39fcbb110579e512d0097515b /regress/test-exec.sh | |
parent | Convert "have_prog" function into "which". (diff) | |
download | openssh-0ff886be132299386cc29d87c2aa16ff68a1aa08.tar.xz openssh-0ff886be132299386cc29d87c2aa16ff68a1aa08.zip |
upstream: Test TEST_SSH_ELAPSED_TIMES for empty string not
executable. No-op on most platforms but should prevent warnings in -portable
on systems that don't have 'date %s'.
OpenBSD-Regress-ID: e39d79867b8065e33d0c5926fa1a31f85659d2a4
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index d25c330b8..5d71d5836 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,9 +1,9 @@ -# $OpenBSD: test-exec.sh,v 1.90 2022/07/04 09:10:31 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.91 2022/07/24 23:29:10 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo -if [ ! -x "$TEST_SSH_ELAPSED_TIMES" ]; then +if [ -z "$TEST_SSH_ELAPSED_TIMES" ]; then STARTTIME=`date '+%s'` fi |