wait_server_start: warn if lsof is not available
If lsof is not available, wait_server_start uses a fixed timeout,
which can trigger a race condition if the timeout turns out to be too
short. Emit a warning so that we know this is going on from the test
logs.
diff --git a/tests/compat.sh b/tests/compat.sh
index 1121e58..27d712b 100755
--- a/tests/compat.sh
+++ b/tests/compat.sh
@@ -878,6 +878,7 @@
done
}
else
+ echo "Warning: lsof not available, wait_server_start = sleep"
wait_server_start() {
sleep 2
}
diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh
index 2260848..0c4639c 100755
--- a/tests/ssl-opt.sh
+++ b/tests/ssl-opt.sh
@@ -254,6 +254,7 @@
done
}
else
+ echo "Warning: lsof not available, wait_server_start = sleep $START_DELAY"
wait_server_start() {
sleep "$START_DELAY"
}