From: Bruno Haible Date: Sat, 15 Jan 2022 22:39:23 +0000 (+0100) Subject: log tests: Avoid test failure with nvc 22.1. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=64011564663d3846d81886ff792dc6ce4279522d;p=gnulib.git log tests: Avoid test failure with nvc 22.1. * tests/test-log.h (test_function): With nvc, expect up to 4 ulps error. --- diff --git a/ChangeLog b/ChangeLog index 5cd835a42c..0b85270dd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-01-15 Bruno Haible + + log tests: Avoid test failure with nvc 22.1. + * tests/test-log.h (test_function): With nvc, expect up to 4 ulps error. + 2022-01-15 Bruno Haible havelib: Recognize ELF platform despite nvc 22.1. diff --git a/tests/test-log.h b/tests/test-log.h index 75139242c1..cd25859d95 100644 --- a/tests/test-log.h +++ b/tests/test-log.h @@ -54,7 +54,13 @@ test_function (void) #else L_(3.0) #endif - : L_(3.0)); + : +#if defined __x86_64__ && defined __EDG__ + L_(5.0) +#else + L_(3.0) +#endif + ); for (i = 0; i < SIZEOF (RANDOM); i++) {