]> Savannah Git Hosting - gnulib.git/commitdiff
log tests: Avoid test failure with nvc 22.1.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 22:39:23 +0000 (23:39 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2022 22:35:47 +0000 (00:35 +0200)
* tests/test-log.h (test_function): With nvc, expect up to 4 ulps error.

ChangeLog
tests/test-log.h

index 5cd835a42cfb4969971f9000057c649e28c87a4a..0b85270dd0f0e8c13a882f1fb929907cd8c04bd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-15  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        havelib: Recognize ELF platform despite nvc 22.1.
index 75139242c17ed2db89a129f8024256a0dde5000f..cd25859d95f5fae11d467eca0507189cc1c3933a 100644 (file)
@@ -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++)
       {