Andrew Johnson
5ee778b0c2
Merged changes from Base-3.14, to revno 12613
2016-02-25 14:13:40 -06:00
Andrew Johnson
b45622ac5e
Test each bitwise cast individually for overflow
2016-02-23 12:42:00 -06:00
Andrew Johnson
89e6fdbca0
Fixed conversion overflows in tests
...
Minor tidying-up, added comments about casting for bitwise operations.
2016-02-19 15:57:44 -06:00
Ralph Lange
4241b4e6cb
libCom/test: add calc tests for bit31 operators (lp:1514520)
2016-02-18 15:17:52 +01:00
Andrew Johnson
e8c9783e06
Merged changes from 3.14 branch up to revno 12530
2015-03-02 10:35:35 -06:00
Andrew Johnson
d2a216b28e
More MS Windows-x64 test fixes
2015-02-17 16:21:13 -06:00
Andrew Johnson
8fde7fb4f3
Merged changes from 3.14 branch
...
Fixed issues building on Solaris.
Up to revno 12497.
2014-09-25 16:34:12 -05:00
Andrew Johnson
9e1ebf8d0f
Clean up build warnings from Darwin (clang).
2014-05-30 12:36:50 -05:00
Andrew Johnson
9170d79ffe
libCom/test: isinf() and isnan() want doubles
...
This apparently becomes important in a newer GCC version.
2014-04-25 14:08:25 -05:00
Andrew Johnson
ef5688f8de
libCom: Accept hex literals in CALC expressions
...
Code back-ported from the 3.15 branch.
2012-12-03 12:58:26 -06:00
Andrew Johnson
a942295ead
libCom/calc: Support 0x literals as epicsUInt32
...
Also use epicsInt32 for all integer calculations.
2012-07-06 14:17:51 -05:00
Andrew Johnson
df7fa22a15
libCom/test: Add more tests of the CALC engine
...
Some of the isnan(Inf) tests were failing on mingw.
This change doesn't fix them, it adds related examples.
2012-02-29 17:11:08 -06:00
Andrew Johnson
8418aa059a
libCom/test: Suppress g++ build warnings from epicsCalcTest
...
Newer versions of gcc support #pragma GCC diagnostic
2011-04-07 17:25:02 -05:00
Andrew Johnson
881d13ac07
Merged the expand-calc-size branch.
...
This allows calc and calcout record expressions to be up to
79 characters long, and shortens the postfix buffer needed by
introducing integer literals. Also removes the length limit
for access security CALC expressions.
2010-10-07 14:16:24 -05:00
Andrew Johnson
fbda9f3280
RCS keyword updates for Bazaar
...
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
Andrew Johnson
6d1cc23a7e
libCom/test: Enhanced epicsCalcTest.
...
Added testArgs() function and tests, and more bad expression tests.
2010-10-04 13:39:02 -05:00
Andrew Johnson
c28520bea6
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.
2009-08-21 14:49:01 +00:00
Andrew Johnson
5d5fd663ff
Use epicsNAN and epicsINF.
2009-04-03 21:16:25 +00:00
Andrew Johnson
2a34e2e464
Don't use fmod(), broken on vxWorks.
...
Use long rather than int for integer calculations.
2008-05-08 16:15:50 +00:00
Andrew Johnson
b281b453bb
Added variable argument functions, mostly by Benjamin Fransken.
...
MIN, MAX, FINITE and ISINF can now take any number of arguments.
2008-04-10 18:06:47 +00:00
Andrew Johnson
e661027615
Fixed printing calc expressions with % chars in them.
2006-11-14 17:29:27 +00:00
Andrew Johnson
6c19051727
Major reorganization:
...
Removed all Main.cpp files, use the macro in testMain.h instead and
defaulted all argc/argv parameters.
Converted all real test programs to use epicsUnitTest.h.
Moved performance measurements from epicsThreadTest to epicsThreadPerform.
Moved epicsOkToBlockTest tests into epicsThreadTest.
On a host arch, make test inside the O.arch directory runs all tests.
2006-11-09 22:38:41 +00:00
Andrew Johnson
eeac94ca3b
Fix errors from MS compiler, which overloads pow() in C++.
2006-10-02 18:01:44 +00:00
Andrew Johnson
d7016a007c
Oops, missed a few tests I'd added.
2006-03-30 20:46:20 +00:00