From 19f4e4d6ea6b907d625fb0da4a59e3f40750b5ce Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 2 Feb 2023 21:04:40 +0800 Subject: mpfr: Fix a test case Normally we don't fix test, but see the comment added into the XML file for the rationale. Update the number of tests by the way. --- chapter08/mpfr.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'chapter08') diff --git a/chapter08/mpfr.xml b/chapter08/mpfr.xml index 7237b1ecb..2d16053de 100644 --- a/chapter08/mpfr.xml +++ b/chapter08/mpfr.xml @@ -41,6 +41,20 @@ Installation of MPFR + + Fix a test case based on a bug of old Glibc releases: + +sed -e 's/+01,234,567/+1,234,567 /' \ + -e 's/13.10Pd/13Pd/' \ + -i tests/tsprintf.c + Prepare MPFR for compilation: ./configure --prefix=/usr \ @@ -58,7 +72,7 @@ make html Do not skip it under any circumstances. - Test the results and ensure that all 183 tests passed: + Test the results and ensure that all 197 tests passed: make check -- cgit v1.2.3-54-g00ecf