[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
log tests: Avoid test failure with nvc 22.1
From: |
Bruno Haible |
Subject: |
log tests: Avoid test failure with nvc 22.1 |
Date: |
Sat, 15 Jan 2022 23:41:50 +0100 |
With nvc 22.1, I observe a test failure:
FAIL: test-log
==============
../../gltests/test-log.h:68: assertion 'err > - err_bound / TWO_MANT_DIG && err
< err_bound / TWO_MANT_DIG' failed
This patch works around it, by allowing a slightly larger error bound.
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.
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++)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- log tests: Avoid test failure with nvc 22.1,
Bruno Haible <=