std/rec/test: add asTest to RTEMS test harness
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user