summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2022-07-24 23:29:11 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2022-07-24 23:29:11 +0000
commit330e1e3b601f530d059f5ae8c9513deebd683c19 (patch)
tree9ce264570dd9118031ad2b578559d06755f9f514 /regress
parentb1020af93e7d07965c1c5ab6fa5f65053daf2f06 (diff)
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'.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/ssh/test-exec.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh
index d2fefe37372..147a18c40f9 100644
--- a/regress/usr.bin/ssh/test-exec.sh
+++ b/regress/usr.bin/ssh/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