Skip to content

Commit

Permalink
This test only makes sense when COIN_C_FINITE is defined, so only run…
Browse files Browse the repository at this point in the history
… it in that case. This should fix coin-or-tools/homebrew-coinor#62
  • Loading branch information
tkralphs committed Jan 7, 2022
1 parent 64581a5 commit 67bdf37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CoinUtils/test/unitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) ;
Expand Down

0 comments on commit 67bdf37

Please sign in to comment.