std/rec/test: add asTest to RTEMS test harness

This commit is contained in:
Michael Davidsaver
2015-03-17 15:26:08 -04:00
parent e7037cc519
commit 8bf765365f
3 changed files with 8 additions and 2 deletions

View File

@@ -1915,7 +1915,9 @@ long dbInitRecordLinks(dbRecordType *rtyp, struct dbCommon *prec)
plink->type = CONSTANT;
switch (plink->type) {
/* constantStr is allowed to remain NULL if plink->text==NULL */
/* constantStr is allowed to remain NULL if plink->text==NULL
* constantStr==NULL has special meaning in recGblInitConstantLink()
*/
case CONSTANT: plink->value.constantStr = NULL; break;
case PV_LINK: plink->value.pv_link.pvname = callocMustSucceed(1, 1, "init PV_LINK"); break;
case VME_IO: plink->value.vmeio.parm = pNullString; break;

View File

@@ -17,6 +17,7 @@ recTestIoc_DBD = base.dbd
TESTFILES += $(COMMON_DIR)/recTestIoc.dbd
testHarness_SRCS += recTestIoc_registerRecordDeviceDriver.cpp
testHarness_SRCS += asTestIoc_registerRecordDeviceDriver.cpp
TESTPROD_HOST += arrayOpTest
arrayOpTest_SRCS += arrayOpTest.c
@@ -31,7 +32,7 @@ asTestIoc_DBD += asTest.dbd
TESTPROD_HOST += asTest
asTest_SRCS += asTest.c
asTest_SRCS += asTestIoc_registerRecordDeviceDriver.cpp
#testHarness_SRCS += asTest.c
testHarness_SRCS += asTest.c
TESTFILES += ../asTest.db
TESTS += asTest

View File

@@ -14,6 +14,7 @@
int analogMonitorTest(void);
int arrayOpTest(void);
int asTest(void);
void epicsRunRecordTests(void)
{
@@ -23,5 +24,7 @@ void epicsRunRecordTests(void)
runTest(arrayOpTest);
runTest(asTest);
epicsExit(0); /* Trigger test harness */
}