[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix hypot tests
From: |
Bruno Haible |
Subject: |
fix hypot tests |
Date: |
Thu, 17 Aug 2017 22:15:27 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-91-generic; KDE/5.18.0; x86_64; ; ) |
On FreeBSD 11.0/x86 I'm seeing these test failures:
FAIL: test-hypot
================
../../gltests/test-hypot.h:41: assertion 'z == HUGEVAL' failed
FAIL test-hypot (exit status: 134)
FAIL: test-hypotf
=================
../../gltests/test-hypot.h:41: assertion 'z == HUGEVAL' failed
FAIL test-hypotf (exit status: 134)
This patch fixes it:
2017-08-17 Bruno Haible <address@hidden>
hypot tests: Fix test failure on FreeBSD 11.0/x86.
* tests/test-hypot.h (test_function): Declare z as 'volatile'.
diff --git a/tests/test-hypot.h b/tests/test-hypot.h
index cfd0aec..1ee790f 100644
--- a/tests/test-hypot.h
+++ b/tests/test-hypot.h
@@ -32,7 +32,7 @@ test_function (void)
{
volatile DOUBLE x;
volatile DOUBLE y;
- DOUBLE z;
+ volatile DOUBLE z;
/* Overflow. */
x = MAX;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- fix hypot tests,
Bruno Haible <=