From e6be421d528d21f9a59fb31251fef78dcb5d054d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 26 Oct 2006 19:30:32 +0000 Subject: [PATCH] * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build 5363) simply issues a warning when dividing by zero at compile time. Problem reported by Elias Pipping. --- ChangeLog | 7 +++++++ tests/base.at | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d44f3fe6..fd10f3e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-10-26 Paul Eggert + + * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, + since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build + 5363) simply issues a warning when dividing by zero at compile + time. Problem reported by Elias Pipping. + 2006-10-26 Eric Blake * THANKS: Update. diff --git a/tests/base.at b/tests/base.at index 0311a4c9..1927e4b7 100644 --- a/tests/base.at +++ b/tests/base.at @@ -230,12 +230,12 @@ AT_SETUP([AC_COMPUTE_INT]) AT_DATA([configure.ac], [[AC_INIT -AC_COMPUTE_INT([divide_by_zero], - [1 / 0], +AC_COMPUTE_INT([invalid_expression], + [**0**], [], - [divide_by_zero=failed]) -test "$divide_by_zero" = failed || - AC_MSG_ERROR([1 / 0 did not fail]) + [invalid_expression=failed]) +test "$invalid_expression" = failed || + AC_MSG_ERROR([**0** evaluated to $invalid_expression instead of failing]) ]]) AT_CHECK_AUTOCONF