Andrew Johnson
2de36d3273
Fix lock-set initialization properly.
2014-07-25 17:59:59 -05:00
Ralph Lange
ae518f6e3e
ioc/db/test: Fix Windows build
2014-07-24 14:06:11 +02:00
Andrew Johnson
846ef343e3
Merged ioc-shutdown2 branch.
2014-07-23 16:59:12 -05:00
Andrew Johnson
6bdb8f911a
Suppress errlog output of expected warning messages.
2014-07-23 16:18:32 -05:00
Michael Davidsaver
0bcfbd0ffc
remove unused
2014-07-14 18:16:30 -04:00
Michael Davidsaver
34f0374ca5
dbLock: yet another fix to dbLockCleanupRecords()
...
track the lockRecord allocation
2014-07-14 17:57:17 -04:00
Michael Davidsaver
3755b9eaad
dbLock: free lockSets
2014-07-11 18:49:41 -04:00
Michael Davidsaver
edf1ad0362
dbLock: another fix to dbLockCleanupRecords()
2014-07-11 18:49:41 -04:00
Michael Davidsaver
bb51281d9c
dbPutLinkTest: set # of tests
2014-07-11 16:59:22 -04:00
Michael Davidsaver
fd7a934ce3
dbPutLinkTest: test link string parsing
...
Test parsing to CONTANT and DB_LINK.
dbCa isn't initialized, so no test for CA_LINK.
2014-07-11 16:51:32 -04:00
Michael Davidsaver
f14bfaab24
dbUnitTest: add testdbGetFieldEqual()
2014-07-11 16:47:55 -04:00
Michael Davidsaver
a218bfd75c
dbLock: fix dbLockCleanupRecords
...
all lockRecord s allocated in one block. oops.
2014-07-11 16:27:41 -04:00
Michael Davidsaver
3f11fd1665
dbUnitTest: replace testdbPutField()
...
add testdbPutFieldOk() and testdbPutFieldFail()
which include calls to testPass() or testFail()
Leave testdbVPutField() as a building block.
2014-07-11 10:30:31 -04:00
Michael Davidsaver
ebc3834661
dbUnitTest: testIocInitOk/testIocShutdownOk testAbort() on failure
2014-07-11 10:28:54 -04:00
Michael Davidsaver
f85c3249ab
dbUnitTest: rename
2014-07-10 18:23:49 -04:00
Andrew Johnson
3ff49fc9b2
Fixed build errors, remove dependency on std.
...
Build errors: Include guard missing from epicsUnitTest.h;
dbShutdownTest.c was calling the non-universal strcasecmp()
instead of epicsStrCaseCmp().
ioc/db/test no longer depends on std. I modified
xRecord to make it a working record type, and simplified the
other test programs so they all use the same new expanded
dbd file rather than each making their own. I also added
dbShutdownTest() to epicsRunDbTests().
2014-07-10 14:27:44 -05:00
Michael Davidsaver and Michael Davidsaver
a9d4204d43
dbLock: free LSET
2014-06-23 16:28:28 -04:00
Michael Davidsaver and Michael Davidsaver
0c73bb9448
dbChannel: atexit
2014-06-23 16:28:27 -04:00
Michael Davidsaver and Michael Davidsaver
c8d9d5e952
dbLock: atexit
2014-06-23 16:28:27 -04:00
Michael Davidsaver and Michael Davidsaver
c838d5d870
dbBkpt: atexit
2014-06-23 16:28:26 -04:00
Michael Davidsaver and Michael Davidsaver
ddaa6e4eb6
dbNotify: cleanup atexit
2014-06-23 16:28:26 -04:00
Michael Davidsaver and Michael Davidsaver
80dd66a58d
add dbUnitTest.h
...
hide boilerplate of tests using the PDB
2014-06-23 16:28:25 -04:00
Michael Davidsaver and Michael Davidsaver
1ae2ab1de6
dbShutdownTest
2014-06-23 16:28:24 -04:00
Michael Davidsaver and Michael Davidsaver
5caaf2d13c
cleanup initHook
2014-06-23 16:28:23 -04:00
Ralph Lange and Michael Davidsaver
2d4e143987
db/callback: add callbackShutdown() to API, add shutdown handling
2014-06-23 16:28:21 -04:00
Ralph Lange and Michael Davidsaver
e83bc13a5e
db/dbCa: add dbCaShutdown() to API, complete shutdown handling
2014-06-23 16:28:21 -04:00
Ralph Lange and Michael Davidsaver
23e22313f1
db/dbScan: add scanShutdown() to API, complete shutdown handling
2014-06-23 16:28:21 -04:00
Andrew Johnson
05367f1b33
Cleanup dbConvert
...
Windows warnings removed from testdbConvert by Michael
Major reformatting of dbConvert.c
2014-07-08 14:40:15 -05:00
Andrew Johnson
09b93f10f7
Fixed dbConvert-memmove problems
...
Test program crashed on Windows-x64.
Some dbConvert.c routines used sizeof([unsigned ]long)
instead of sizeof(epics[U]Int32).
2014-07-08 12:32:11 -05:00
Andrew Johnson
659916cb16
Fix Windows build - no math with void* pointers
2014-06-16 09:57:02 -05:00
Michael Davidsaver and Michael Davidsaver
77ffc94677
out of caution use memmove instead of memcpy
2014-06-13 15:37:13 -04:00
Michael Davidsaver and Michael Davidsaver
ec576dd088
benchmark dbConvert
2014-06-13 15:37:12 -04:00
Michael Davidsaver and Michael Davidsaver
fe61d46153
add testdbConvert
2014-06-13 15:37:11 -04:00
Michael Davidsaver and Michael Davidsaver
1a0ba81d0d
dbConvert: optimize copy w/o convert
...
Use memcpy() where input and output memory representations
are the exactly the same (integer and floating point types).
Assumes 2s complement integer types and that signed and
unsigned types have the same representation.
2014-06-13 15:37:11 -04:00
Michael Davidsaver and Michael Davidsaver
0e28ff55c6
add include
2014-06-13 15:37:10 -04:00
Ralph Lange
41bd895cd5
ioc: Fix more MSVC 12.0 warnings
2014-06-04 21:18:43 +02:00
Ralph Lange
5754dc136e
src/ioc: fix numerous warnings appearing on MSVC 12.0 / Windows (64bit)
2014-06-04 15:56:51 +02:00
Ralph Lange
f8b746287e
ioc/db/test: make chfPluginTest more flexible wrt %e formatting of double
2014-06-04 11:55:40 +02:00
Ralph Lange
e7416ce144
ioc/db: fix issue with compiler differences between MSVC and GNU (enum signedness)
2014-06-04 11:53:32 +02:00
Andrew Johnson
c980613bd8
db/dbChannel: Rename dbr_final_type -> final_dbr_type
2014-05-29 12:31:47 -05:00
Andrew Johnson
e1e389a2dd
Low-memory behaviour fixes.
...
Fix unchecked buffer allocation in dbChannel.c
Replace calls to epicsStrDup() with checked malloc() for
things that happen often after iocInit.
Michael Davidsaver pointed out this issue.
2014-02-07 17:19:28 -06:00
Andrew Johnson
0c52d41e95
db/test: Tell Win32 to only print 2-digit exponents
...
By default the MS libraries print 3-digit exponents,
whereas the ANSI standard is for 2-digits.
2013-12-17 17:41:13 -06:00
Andrew Johnson
0a2020e2fc
Merged changes from 3.14 branch
...
Up to 3.14.12.4 release.
2013-12-17 12:54:04 -06:00
Michael Davidsaver
6a6e527fc1
post DBE_PROPERTY from dbPut()
...
All writes to a prop(YES) field result
in a monitor, even when the field value
doesn't change.
2013-11-04 13:39:17 -05:00
Andrew Johnson
1b51a4796d
Merged printf-record branch
...
Adds three new record types: printf, lsi and lso.
Provides device support for all three.
2013-10-03 14:04:03 -07:00
Andrew Johnson
2be5e15346
Merged changes from 3.14 branch
...
Up to revno 12420 inclusive.
2013-06-07 18:08:38 -05:00
Andrew Johnson
2eb48f43eb
Merged my udf-severity branch.
2013-05-30 15:00:37 -05:00
Jeff Hill johill@lanl.gov
5e5ea11658
fix for https://bugs.launchpad.net/epics-base/+bug/1179642
2013-05-16 11:17:47 -06:00
Andrew Johnson
8d7a241d04
dbScan: Allow periodic scan unit strings to differ in case.
...
Use epicsStrCaseCmp() instead of strcmp().
2013-04-23 10:38:57 -05:00
Andrew Johnson
2c8eb630cb
Merged Michael Davidsaver's array-opt branch
2013-04-02 17:01:53 -05:00