From c28520bea64313074df7af2670b5c501ab1ea50b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 21 Aug 2009 14:49:01 +0000 Subject: [PATCH] Adjust test 66 so it doesn't fail if the gcc optimizer result gives -1 but glibc returns +1. Both are correct, gcc is following a newer standard. --- src/libCom/test/epicsCalcTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/test/epicsCalcTest.cpp b/src/libCom/test/epicsCalcTest.cpp index 77a77079f..ddb78be4f 100644 --- a/src/libCom/test/epicsCalcTest.cpp +++ b/src/libCom/test/epicsCalcTest.cpp @@ -281,7 +281,7 @@ MAIN(epicsCalcTest) testCalc("finite(-Inf,1,2)", 0); testExpr(isinf(0)); testExpr(isinf(Inf)); - testExpr(isinf(-Inf)); + testExpr(!!isinf(-Inf)); // Some GCCs return -1/0/+1 rather than 0/+1 testExpr(isinf(NaN)); testExpr(isnan(0)); testExpr(isnan(Inf));