aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb@gnu.org>2021-04-01 18:20:56 -0500
committerJacob Bachmeyer <jcb@gnu.org>2021-04-01 18:20:56 -0500
commitc35660505e4ec0a79a1ca0e5ea88d6e78caa1778 (patch)
tree90c81f41a7a02e1e14235d9cd485348e6aea4a9a
parentea9642561c3f410dfb9f1362bc61fdf4e499b7f4 (diff)
downloaddejagnu-c35660505e4ec0a79a1ca0e5ea88d6e78caa1778.zip
dejagnu-c35660505e4ec0a79a1ca0e5ea88d6e78caa1778.tar.gz
dejagnu-c35660505e4ec0a79a1ca0e5ea88d6e78caa1778.tar.bz2
Clean up another non-portable shell construct in runtest launcher
-rw-r--r--ChangeLog5
-rwxr-xr-xruntest2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 91f6d57..19221ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,11 @@
message to better fit GNU conventions, with thanks to Tom Tromey
for the reporting this issue.
+ PR47382
+
+ * runtest: Remove use of non-portable "if !" that causes problems
+ with /bin/sh on Solaris 10.
+
2021-03-30 Jacob Bachmeyer <jcb@gnu.org>
* configure: Regenerate.
diff --git a/runtest b/runtest
index b2e0a4c..807a6ae 100755
--- a/runtest
+++ b/runtest
@@ -152,7 +152,7 @@ if [ -z "$runpath" ] ; then
exit 1
fi
-if ! command -v "$expectbin" > /dev/null ; then
+if command -v "$expectbin" > /dev/null ; then :; else
echo "ERROR: unable to find expect in the PATH"
exit 1
fi