Commit Graph

284 Commits

Author SHA1 Message Date
Andrew Johnson
b3abcbb52e Don't fail if epicsSnprintf returns less than the buffer size needed. 2008-10-20 15:35:10 +00:00
W. Eric Norum
48257aec7c Fix race condition exposed by compilers with more agressive optimization.
Add test procedure for epicsRingBytes.
2008-10-07 11:05:41 +00:00
Andrew Johnson
e97439c7df Ensure the last test actually completes and reports... 2008-10-03 19:28:34 +00:00
Andrew Johnson
896223e819 Fixed compiler warning. 2008-09-26 17:00:17 +00:00
Andrew Johnson
1269897998 Fixed epicsEventWaitWithTimeout(id, 0.0), added test. 2008-09-24 19:24:59 +00:00
Andrew Johnson
e2896fa82f Perl's Test::Simple library is not installed by default, use Test instead. 2008-09-11 22:35:01 +00:00
Andrew Johnson
0bddd7dc8c Added Unit Test Harness to summarize results on vxWorks/RTEMS.
Added taskwdTest to tests run.
2008-09-03 16:48:03 +00:00
Andrew Johnson
7edc9f4d89 Fixes for Win32. 2008-08-28 15:32:46 +00:00
Andrew Johnson
1f1dd6b2f2 Added more tests on inf and nan (MS compiler fails these). 2008-08-26 20:22:06 +00:00
Andrew Johnson
477466e517 Windows runs more tests because it outputs 3 digit exponents.
Fix tests and test plan to accommodate this.
2008-08-26 15:01:47 +00:00
Andrew Johnson
aa530b295b =/== bug; not sure how this got through. 2008-08-25 21:38:10 +00:00
Andrew Johnson
b6ee45dbab Added virtual destructors (in most cases protected) to remove g++ warnings:
'class ...' has virtual functions but non-virtual destructor
2008-07-28 16:19:50 +00:00
Andrew Johnson
8a17c4b1e8 Fixed compiler warnings. 2008-07-28 16:03:34 +00:00
Andrew Johnson
363080071c Fix build issues on vxWorks. 2008-05-22 20:19:34 +00:00
Andrew Johnson
1ed5eb1ad1 Major reworking of the task watchdog implementation:
* Added new monitoring API with insert and remove callbacks; the old API is
  still supported though.
* Added report routine, callable from iocsh.
* taskwdInsert() can take a NULL tid, meaning the calling thread.
2008-05-22 17:54:19 +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
W. Eric Norum
57005d58ae Use new, simpler, RTEMS test harness. 2008-04-17 19:34:57 +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
37b371e956 macLib cleanup, added support for scoped macros.
New test program for regular macros as well as the environment variable tests.
2008-03-31 19:30:17 +00:00
Andrew Johnson
91cdaf7cca Fixed warnings on 64-bit platforms. 2008-01-04 21:32:19 +00:00
W. Eric Norum
1c89724137 Use new configuration entries. 2007-12-17 21:05:20 +00:00
Andrew Johnson
892c305cc5 Possible fix for Win32, CR+LF in lines output by unitTest code. 2007-11-06 23:36:25 +00:00
W. Eric Norum
5bf49c4616 More timing cleanups for RTEMS. 2007-06-20 15:38:40 +00:00
Andrew Johnson
643db2e417 Make sure the EPICS epoch is 1990-01-01T00:00:00 UTC 2007-05-07 20:50:38 +00:00
Andrew Johnson
a710bff122 Fixed testPlan, added test for %% in strtfime format strings. 2007-01-02 19:30:04 +00:00
Jeff Hill
e0b4715c98 fixed mantis 279 - epicsTimeToStrftime problem with %06f format 2006-12-22 18:57:53 +00:00
Andrew Johnson
3d3ad47e47 Added test using timeout = DBL_MAX. 2006-12-21 17:11:33 +00:00
Andrew Johnson
b937142ff3 Fixes for vxWorks: permit multiple runs, don't use assert(). 2006-12-12 19:58:52 +00:00
Andrew Johnson
f50c49131c Make it <cstddef> so it builds everywhere else. 2006-12-11 17:51:48 +00:00
Janet B. Anderson
55986a1e92 Fix for Borland build. 2006-12-11 17:46:23 +00:00
Andrew Johnson
11a865805e Make test bail out if socket bind fails; usually there's a CAS running. 2006-12-11 16:52:36 +00:00
Jeff Hill
f16d241662 installed epics thread exit capabilities 2006-12-07 00:49:19 +00:00
Jeff Hill
724a589fe1 fixed warnings 2006-12-05 22:54:52 +00:00
Andrew Johnson
f0b99cc9c1 No version of vxWorks currently provides numeric_limits<T> ... 2006-12-05 21:44:01 +00:00
Jeff Hill
afc4bdd3be fixed comment 2006-12-01 16:34:01 +00:00
Andrew Johnson
48337e2382 Fixed gcc '0 flag' warnings. 2006-11-28 17:04:18 +00:00
Jeff Hill
2fdf182a5d socket related data structures should use socket byte swap 2006-11-18 00:25:54 +00:00
Janet B. Anderson
cfefdbf067 Moved test rule to RULES_BUILD. 2006-11-16 22:15:51 +00:00
Janet B. Anderson
60c8cbbb7b Use new TESTSCRIPTS definition. 2006-11-16 21:40:42 +00:00
Andrew Johnson
ad1f8f9925 Added round-trip testing of char escapes. 2006-11-15 20:14:46 +00:00
Andrew Johnson
20ede98a35 Make .t files work with prove, where $cwd may be a parent directory.
Won't work if you give prove an absolute path to the .t file though...
2006-11-14 17:42:20 +00:00
Andrew Johnson
e661027615 Fixed printing calc expressions with % chars in them. 2006-11-14 17:29:27 +00:00
Andrew Johnson
fc0fd6ec0d Removed old comment. 2006-11-13 21:04:54 +00:00
Andrew Johnson
e66768314f Converted to use epicsUntiTest.h. 2006-11-13 20:21:05 +00:00
Andrew Johnson
db0d1f1156 TESTPROD_LIBS doesn't work, use PROD_LIBS instead. 2006-11-10 23:09:26 +00:00
Andrew Johnson
52b7171576 Moved testMain.h into libCom/misc, since db/test is built before libCom/test. 2006-11-10 22:43:04 +00:00
Andrew Johnson
de29cb834f Moved timing measurement of epicsThreadPrivateGet() to epicsThreadPerform.cpp 2006-11-10 21:43:16 +00:00
Andrew Johnson
62963c7d5d Fixes for make test if '.' is not in $PATH. 2006-11-10 16:32:26 +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
W. Eric Norum
39a8d90553 Let epicsExitTest work on systems with strict priority scheduling. 2006-10-27 16:32:40 +00:00