summaryrefslogtreecommitdiffstats
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2022-07-25 01:29:10 +0200
committerDarren Tucker <dtucker@dtucker.net>2022-07-25 03:05:27 +0200
commit0ff886be132299386cc29d87c2aa16ff68a1aa08 (patch)
tree237050dd633e77c39fcbb110579e512d0097515b /regress/test-exec.sh
parentConvert "have_prog" function into "which". (diff)
downloadopenssh-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.sh4
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