/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ #include #include #include #include #include #include #include extern "C" { extern int testioc_registerRecordDeviceDriver(struct dbBase*); } using namespace pvxs; namespace { } // namespace MAIN(testioc) { testPlan(5); testSetup(); testdbPrepare(); testThrows([]{ ioc::server(); }); testdbReadDatabase("testioc.dbd", nullptr, nullptr); testEq(0, testioc_registerRecordDeviceDriver(pdbbase)); testEq(0, iocshCmd("pvxsr()")); testEq(0, iocshCmd("pvxs_target_info()")); testTrue(!!ioc::server()); testIocInitOk(); testIocShutdownOk(); testdbCleanup(); return testDone(); }