From: Bruno Haible Date: Thu, 21 Nov 2019 10:44:07 +0000 (+0100) Subject: math tests: Update after 2019-08-28 change. X-Git-Tag: v1.0~4585 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d9803384537f7ec04a7a9aa8641677dc3eab6a3c;p=gnulib.git math tests: Update after 2019-08-28 change. * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a return type of 'bool', not 'int'. --- diff --git a/ChangeLog b/ChangeLog index 23e8176022..0a7006ce23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-11-21 Bruno Haible + + math tests: Update after 2019-08-28 change. + * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a + return type of 'bool', not 'int'. + 2019-11-21 Bruno Haible pthread-spin: Fix errors in C++ mode. diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc index 74569d39e0..57bfd1be9c 100644 --- a/tests/test-math-c++.cc +++ b/tests/test-math-c++.cc @@ -385,28 +385,28 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double)); # ifdef isfinite # error "isfinite should not be a macro in C++" # endif -REAL_FLOATING_CHECK (isfinite, int, (float), int, (double), int, (long double)); +REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double)); #endif #if GNULIB_TEST_ISINF # ifdef isinf # error "isinf should not be a macro in C++" # endif -REAL_FLOATING_CHECK (isinf, int, (float), int, (double), int, (long double)); +REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double)); #endif #if GNULIB_TEST_ISNAN # ifdef isnan # error "isnan should not be a macro in C++" # endif -REAL_FLOATING_CHECK (isnan, int, (float), int, (double), int, (long double)); +REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double)); #endif #if GNULIB_TEST_SIGNBIT # ifdef signbit # error "signbit should not be a macro in C++" # endif -REAL_FLOATING_CHECK (signbit, int, (float), int, (double), int, (long double)); +REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double)); #endif