From f5aacd0c7ab38c7d5b0ecbadadd314067225e73e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 15 Jan 2022 23:39:23 +0100 Subject: [PATCH] log tests: Avoid test failure with nvc 22.1. * tests/test-log.h (test_function): With nvc, expect up to 4 ulps error. --- ChangeLog | 5 +++++ tests/test-log.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b6c962de8..b568f3034a 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 7246650217..8b082c629b 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++) { -- 2.39.5