]> 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>
Sat, 15 Jan 2022 22:39:23 +0000 (23:39 +0100)
* tests/test-log.h (test_function): With nvc, expect up to 4 ulps error.

ChangeLog
tests/test-log.h

index 7b6c962de878bf3ceb78542728c66ab88beb6588..b568f3034aac2c752b1a7b1af7692df24c06fa6d 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 7246650217654571c5483c2aa5cab7e91227d474..8b082c629b08c1092bbc72608f22ae04bfa3e226 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++)
       {