Add regression tests for Async Soft Channel input links

Caused by the previous fix, but this is repairable.
This commit is contained in:
Andrew Johnson
2019-04-17 23:16:29 -05:00
committed by Dirk Zimoch
parent ee193edd42
commit c866609f24
2 changed files with 39 additions and 1 deletions

View File

@@ -4,3 +4,24 @@ record(calcout, "cout") {
field(INPC, "99")
field(INPD, "99")
}
record(ai, "ain") {
field(DTYP, "Async Soft Channel")
}
record(bi, "bin") {
field(DTYP, "Async Soft Channel")
}
record(int64in, "iin") {
field(DTYP, "Async Soft Channel")
}
record(longin, "lin") {
field(DTYP, "Async Soft Channel")
}
record(mbbi, "min") {
field(DTYP, "Async Soft Channel")
}
record(mbbiDirect, "din") {
field(DTYP, "Async Soft Channel")
}
record(stringin, "sin") {
field(DTYP, "Async Soft Channel")
}

View File

@@ -160,6 +160,23 @@ testSpecialLinks(void)
testdbGetFieldEqual("cout.D", DBF_LONG, 99);
testdbGetFieldEqual("cout.INDV", DBF_LONG, calcoutINAV_EXT_NC);
eltc(0);
testdbPutFieldOk("ain.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "ain.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("bin.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "bin.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("iin.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "iin.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("lin.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "lin.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("min.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "min.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("din.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "din.INP", DBF_STRING, "{\"const\":1}");
testdbPutFieldOk("sin.INP", DBF_STRING, "cout");
testdbPutFieldFail(S_db_badField, "sin.INP", DBF_STRING, "{\"const\":1}");
eltc(1);
testIocShutdownOk();
testdbCleanup();
}
@@ -167,7 +184,7 @@ testSpecialLinks(void)
MAIN(regressTest)
{
testPlan(46);
testPlan(60);
testArrayLength1();
testHexConstantLinks();
testLinkMS();