std/rec/test: explicitly register test subroutine for subroutine record (fix build on MinGW)
This commit is contained in:
@@ -14,7 +14,6 @@ PROD_LIBS = dbRecStd dbCore ca Com
|
||||
|
||||
TARGETS += $(COMMON_DIR)/analogMonitorTest.dbd
|
||||
analogMonitorTest_DBD += base.dbd
|
||||
analogMonitorTest_DBD += myTestSub.dbd
|
||||
TESTPROD_HOST += analogMonitorTest
|
||||
analogMonitorTest_SRCS += analogMonitorTest.c
|
||||
analogMonitorTest_SRCS += analogMonitorTest_registerRecordDeviceDriver.cpp
|
||||
|
||||
@@ -75,7 +75,6 @@ static int t_ReceivedUpdates[NO_OF_PATTERNS][NO_OF_VALUES_PER_SEQUENCE];
|
||||
static long myTestSub(void *p) {
|
||||
return 0;
|
||||
}
|
||||
epicsRegisterFunction(myTestSub);
|
||||
|
||||
|
||||
/* Minimal pre-chain plugin to divert all monitors back into the test (before they hit the queue) */
|
||||
@@ -152,6 +151,8 @@ MAIN(analogMonitorTest)
|
||||
t_SetValues[14][0] = -epicsINF; t_SetValues[14][1] = epicsINF;
|
||||
t_SetValues[15][0] = -epicsINF; t_SetValues[15][1] = -epicsINF;
|
||||
|
||||
registryFunctionAdd("myTestSub", (REGISTRYFUNCTION) myTestSub);
|
||||
|
||||
testPlan(1793);
|
||||
|
||||
if (dbReadDatabase(&pdbbase, "analogMonitorTest.dbd",
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
function(myTestSub)
|
||||
Reference in New Issue
Block a user