File: 0011-hack-Restrict-tabulation-tests-to-double-to-prevent-.patch

package info (click to toggle)
opm-common 2025.10%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96,920 kB
  • sloc: cpp: 291,772; python: 3,609; sh: 198; xml: 174; pascal: 136; makefile: 12
file content (30 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Markus Blatt <markus@dr-blatt.de>
Date: Mon, 11 Mar 2024 16:54:39 +0100
Subject: [hack] Restrict tabulation tests to double to prevent FTBFS.

Theses tests have been failing all the time, but im previous
opm-common releases these fails have not been fatal. They are now,
because upstream changed this (but without fixing architectures).

While this is a hack, we do because the errors were actually there in
previous releases, but did not make the build failing. Also this will
allow binary packages to actually migrate to testing.
---
 tests/material/test_tabulation.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/material/test_tabulation.cpp b/tests/material/test_tabulation.cpp
index d1dcb85..5a4a448 100644
--- a/tests/material/test_tabulation.cpp
+++ b/tests/material/test_tabulation.cpp
@@ -40,7 +40,9 @@
 #include <iostream>
 #include <tuple>
 
-using Types = boost::mpl::list<float,double>;
+//using Types = boost::mpl::list<float,double>;
+// Running only in double as float makes problems on somet 64bit machines
+using Types = boost::mpl::list<double>;
 
 BOOST_AUTO_TEST_CASE_TEMPLATE(H2O, Scalar, Types)
 {