From 67bdf37c8e21262928a6878c2529a91509843e34 Mon Sep 17 00:00:00 2001 From: Ted Ralphs Date: Fri, 7 Jan 2022 14:15:58 -0500 Subject: [PATCH] This test only makes sense when COIN_C_FINITE is defined, so only run it in that case. This should fix https://github.com/coin-or-tools/homebrew-coinor/issues/62 --- CoinUtils/test/unitTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CoinUtils/test/unitTest.cpp b/CoinUtils/test/unitTest.cpp index a31362e81..fc20f2930 100644 --- a/CoinUtils/test/unitTest.cpp +++ b/CoinUtils/test/unitTest.cpp @@ -160,12 +160,14 @@ int main (int argc, const char *argv[]) { allOK = false ; testingMessage( "ERROR" ) ; } testingMessage( "; NaN value: " ) ; +# ifdef COIN_C_FINITE checkVal = checkVal/checkVal ; if (CoinIsnan(checkVal)) { testingMessage( "ok.\n" ) ; } else { allOK = false ; testingMessage( "ERROR.\n" ) ; } +# endif # else allOK = false ; testingMessage( "ERROR: No functional CoinIsnan.\n" ) ;