[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
expl tests: Avoid test failure on NetBSD 10.0/i386
From: |
Bruno Haible |
Subject: |
expl tests: Avoid test failure on NetBSD 10.0/i386 |
Date: |
Fri, 05 Apr 2024 15:18:18 +0200 |
On NetBSD 10.0/i386, I see this test failure:
FAIL: test-expl
===============
../../gltests/test-exp.h:81: assertion 'err > - err_bound / TWO_MANT_DIG && err
< err_bound / TWO_MANT_DIG' failed
FAIL test-expl (exit status: 134)
The expl() function is just more imprecise on this platform than elsewhere.
Here is a workaround:
2024-04-05 Bruno Haible <bruno@clisp.org>
expl tests: Avoid test failure on NetBSD 10.0/i386.
* tests/test-exp.h (test_function): Allow more deviation on NetBSD/i386.
diff --git a/tests/test-exp.h b/tests/test-exp.h
index 1b1d35c400..f7ef2a4063 100644
--- a/tests/test-exp.h
+++ b/tests/test-exp.h
@@ -63,7 +63,9 @@ test_function (void)
/* Error bound, in ulps. */
const DOUBLE err_bound =
(sizeof (DOUBLE) > sizeof (double) ?
-#if defined __i386__ && defined __FreeBSD__
+#if defined __i386__ && defined __NetBSD__
+ L_(25000.0)
+#elif defined __i386__ && defined __FreeBSD__
L_(2400.0)
#else
L_(24.0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- expl tests: Avoid test failure on NetBSD 10.0/i386,
Bruno Haible <=