From 93fe387e8737652c9fcf529ca43ec27f60346c24 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 4 May 2017 12:23:57 -0500 Subject: [PATCH] Fix dbStaticTest recnode flags check --- 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 240beabf9..5f5367722 100644 --- a/src/ioc/db/test/dbStaticTest.c +++ b/src/ioc/db/test/dbStaticTest.c @@ -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);