/*************************************************************************\ * Copyright (c) 2015 Brookhaven Science Assoc. as operator of Brookhaven * National Laboratory. * SPDX-License-Identifier: EPICS * EPICS BASE is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. \*************************************************************************/ /* * Part of dbCaLinkTest, compiled seperately to avoid * dbAccess.h vs. db_access.h conflicts */ #include #include #include #include #include "epicsUnitTest.h" #include "cadef.h" #define testECA(OP) if((OP)!=ECA_NORMAL) {testAbort("%s", #OP);} else {testPass("%s", #OP);} void putgetarray(chid chanid, double first, size_t count) { testDiag("putgetarray(%f,%u)", first, (unsigned)count); std::vector buf(count); for(size_t i=0; i buf2(count); testECA(ca_array_get(DBR_DOUBLE, count, chanid, &buf2[0])); testECA(ca_pend_io(1.0)); for(size_t i=0; i