>From cf6577a5d8fe4497e57e4c2719d50fffd9388aa7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Subject: [PATCH 3/5] 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'. --- ChangeLog | 6 ++++++ tests/test-math-c++.cc | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 23e8176..f60daa0 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 74569d3..57bfd1b 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 -- 2.7.4