[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/06: check-guile.in: exit 2 on errors and direct outpu
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/06: check-guile.in: exit 2 on errors and direct output to stderr |
Date: |
Fri, 21 Jun 2024 05:14:24 -0400 (EDT) |
wingo pushed a commit to branch main
in repository guile.
commit 08285b6894c2606ed576124fdeb82415bbc7873f
Author: Rob Browning <rlb@defaultvalue.org>
AuthorDate: Fri Aug 25 17:18:30 2023 -0500
check-guile.in: exit 2 on errors and direct output to stderr
Return 2 rather than 1 for errors so that 1 will be available for any
future boolean tests (as with say grep).
Direct error message to stderr rather than stdout.
* check-guile.in: send error message to stderr and exit 2 (not 1).
---
check-guile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/check-guile.in b/check-guile.in
index 68f353c6e..5a7beee8a 100644
--- a/check-guile.in
+++ b/check-guile.in
@@ -30,8 +30,8 @@ if [ -f "$guile" -a -x "$guile" ] ; then
echo "Testing $guile ..." "$@"
echo "with GUILE_LOAD_PATH=$GUILE_LOAD_PATH"
else
- echo "ERROR: Cannot execute $guile"
- exit 1
+ echo "ERROR: Cannot execute $guile" 1>&2
+ exit 2
fi
# documentation searching ignores GUILE_LOAD_PATH.
- [Guile-commits] branch main updated (d26130808 -> d7ed45762), Andy Wingo, 2024/06/21
- [Guile-commits] 03/06: Switch to the preferred parallel automake test harness, Andy Wingo, 2024/06/21
- [Guile-commits] 05/06: Document wait-condition-variable's spurious returns, Andy Wingo, 2024/06/21
- [Guile-commits] 02/06: guile-test: support automake parallel test harness via --trs-file, Andy Wingo, 2024/06/21
- [Guile-commits] 04/06: Avoid stompling user TESTS_ENVIRONMENT var, Andy Wingo, 2024/06/21
- [Guile-commits] 01/06: check-guile.in: exit 2 on errors and direct output to stderr,
Andy Wingo <=
- [Guile-commits] 06/06: Ensure the signal-delivery thread is completely stopped before fork, Andy Wingo, 2024/06/21