regressTest: attempt to fix spurious failure

This commit is contained in:
Michael Davidsaver
2021-10-11 11:53:35 -07:00
parent fb46786ccb
commit b9e9537376
2 changed files with 12 additions and 0 deletions

View File

@@ -15,4 +15,9 @@ record(stringin, "si2") {
}
record(longin, "li2") {
field(INP, "ai.SEVR CA")
field(FLNK, "cnt")
}
record(calc, "cnt") {
field(CALC, "VAL+1")
}

View File

@@ -171,11 +171,14 @@ void testLongCalc(void)
static
void testLinkSevr(void)
{
testMonitor *mon;
dbChannel *chan;
startRegressTestIoc("regressLinkSevr.db");
dbCaSync(); /* wait for CA links to connect */
dbCaSync(); /* wait for initial update */
mon = testMonitorCreate("cnt", DBE_VALUE, 0);
chan = dbChannelCreate("ai.SEVR");
if(!chan)
testAbort("Can't create channel for ai.SEVR");
@@ -193,6 +196,8 @@ void testLinkSevr(void)
testdbGetFieldEqual("ai.SEVR", DBF_STRING, "INVALID");
testdbPutFieldOk("si1.PROC", DBF_LONG, 1);
testMonitorWait(mon);
dbCaSync(); /* wait for update */
testdbGetFieldEqual("si1", DBF_STRING, "INVALID");
testdbGetFieldEqual("li1", DBF_LONG, INVALID_ALARM);
@@ -201,6 +206,8 @@ void testLinkSevr(void)
testTodoEnd();
testdbGetFieldEqual("li2", DBF_LONG, INVALID_ALARM);
testMonitorDestroy(mon);
testIocShutdownOk();
testdbCleanup();
}