Debian Codegraph @

debian/patches/only-use-test-solver-if-data-samples-is-found.patch

raw
1 From: HÃ¥vard F. Aasen <[email protected]>
2 Date: Sun, 14 Apr 2024 17:40:32 +0200
3 Subject: Only use test solver if data samples is found
4
5 Conditionally enable 'USETESTSOLVER' if data samples has been found
6 during configuring.
7
8 Optimally, checking if data samples exists should happen at runtime,
9 because of this, this patch is not suitable for upstream.
10
11 Bug: https://github.com/coin-or/Osi/issues/184
12 Bug-Debian: https://bugs.debian.org/1068739
13 Forwarded: not-needed
14 ---
15 Osi/test/unitTest.cpp | 2 ++
16 1 file changed, 2 insertions(+)
17
18 diff --git a/Osi/test/unitTest.cpp b/Osi/test/unitTest.cpp
19 index 6e486ff..0536ff1 100644
20 --- a/Osi/test/unitTest.cpp
21 +++ b/Osi/test/unitTest.cpp
22 @@ -31,7 +31,9 @@ using namespace OsiUnitTest;
23 set, is set up for exactly this sort of comparison. To take advantage of
24 it, you'll need to edit this file and Makefile in order to get it to work.
25 */
26 +#ifdef COIN_HAS_SAMPLE
27 #define USETESTSOLVER
28 +#endif
29
30 /*
31 Some convenient undef's, to make it easy to isolate a particular solver.