From 8f880a614ceeec02afa49aec9968fd318e8c0231 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 3 May 2017 19:32:50 -0400 Subject: [PATCH] ioc/db/test: check record node flags --- src/ioc/db/test/dbStaticTest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ioc/db/test/dbStaticTest.c b/src/ioc/db/test/dbStaticTest.c index e1d0a9aae..240beabf9 100644 --- a/src/ioc/db/test/dbStaticTest.c +++ b/src/ioc/db/test/dbStaticTest.c @@ -22,6 +22,9 @@ static void testEntry(const char *pv) testOk1(entry.precnode && strcmp(((dbCommon*)entry.precnode->precord)->name, "testrec")==0); testOk1(entry.pflddes && strcmp(entry.pflddes->name, "VAL")==0); + /* all tested PVs are either a record with aliases, or an alias */ + testOk1(entry.precnode && ((entry.precnode->flags&DBRN_FLAGS_ISALIAS) ^ (entry.precnode->flags&DBRN_FLAGS_HASALIAS))); + testOk1(dbFollowAlias(&entry)==0); testOk1(dbFindInfo(&entry, "A")==0 && strcmp(dbGetInfoString(&entry), "B")==0); @@ -114,7 +117,7 @@ void dbTestIoc_registerRecordDeviceDriver(struct dbBase *); MAIN(dbStaticTest) { - testPlan(192); + testPlan(200); testdbPrepare(); testdbReadDatabase("dbTestIoc.dbd", NULL, NULL);