Fix dbStaticTest recnode flags check

This commit is contained in:
Andrew Johnson
2017-05-04 12:23:57 -05:00
parent 8f880a614c
commit 93fe387e87

View File

@@ -23,7 +23,10 @@ static void testEntry(const char *pv)
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)));
testOk(entry.precnode &&
(!(entry.precnode->flags & DBRN_FLAGS_ISALIAS) ^
!(entry.precnode->flags & DBRN_FLAGS_HASALIAS)),
"Recnode flags %d", entry.precnode->flags);
testOk1(dbFollowAlias(&entry)==0);