From c8913d8e8a69d7fc93eac3a31326f3973af32958 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 3 May 2001 08:50:32 +0000 Subject: [PATCH] bctest changes for Ultrix (don't return 1 from bctest, otherwise make aborts) --- test/Makefile.ssl | 2 +- test/bctest | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/Makefile.ssl b/test/Makefile.ssl index 4b88bbfb55..ef41e06e62 100644 --- a/test/Makefile.ssl +++ b/test/Makefile.ssl @@ -191,7 +191,7 @@ test_bn: @./$(BNTEST) >tmp.bntest @echo quit >>tmp.bntest @echo "running bc" - @) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' + @) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} else {print STDERR "."; $$i++;}} print STDERR "\n$$i tests passed\n"' @echo 'test a^b%c implementations' ./$(EXPTEST) diff --git a/test/bctest b/test/bctest index fbe74ed90b..bdb3218f7a 100755 --- a/test/bctest +++ b/test/bctest @@ -104,5 +104,8 @@ EOF done echo "No working bc found. Consider installing GNU bc." >&2 -echo "cat >/dev/null" +if [ "$1" = ignore ]; then + echo "cat >/dev/null" + exit 0 +fi exit 1 -- 2.25.1