summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-26 00:16:06 +0200
committerBruno Haible <bruno@clisp.org>2023-04-26 00:16:06 +0200
commit446cbd49a361d875b602d68979c8983d3b32c512 (patch)
tree4d9450e969b53dc18433b33786be1f36b0a9504b /tests
parent9c0e7adb118023cb12248ef035636db4f678c700 (diff)
downloadgnulib-446cbd49a361d875b602d68979c8983d3b32c512.tar.gz
expm1 tests: Avoid test failure on 32-bit mingw.
* tests/test-expm1.h (test_function): Mark y as 'volatile'.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-expm1.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test-expm1.h b/tests/test-expm1.h
index 8d2a9b9398..68f3f6be6f 100644
--- a/tests/test-expm1.h
+++ b/tests/test-expm1.h
@@ -35,14 +35,10 @@ test_function (void)
for (i = -1, x = L_(0.5); i >= MIN_EXP; i--, x *= L_(0.5))
{
- DOUBLE y;
+ volatile DOUBLE y;
y = EXPM1 (x);
-#ifdef __MINGW32__ /* mingw returns a value that is slightly too small. */
- ASSERT (y >= x * (L_(1.0) - L_(1.0) / TWO_MANT_DIG));
-#else
ASSERT (y >= x);
-#endif
ASSERT (y < L_(1.5) * x);
y = EXPM1 (- x);