This is Unofficial EPICS BASE Doxygen Site
testmon.cpp File Reference
#include <epicsAtomic.h>
#include <epicsGuard.h>
#include <epicsUnitTest.h>
#include <testMain.h>
#include <pv/epicsException.h>
#include <pv/monitor.h>
#include <pv/thread.h>
#include <pv/serverContext.h>
#include "server.h"
#include "utilities.h"
+ Include dependency graph for testmon.cpp:

Go to the source code of this file.

Macros

#define TESTC(name)   temp=epicsAtomicGetSizeT(&name::num_instances); ok &= temp==0; testDiag("num. live " #name " %u", (unsigned)temp)
 

Typedefs

typedef epicsGuard< epicsMutex > Guard
 

Functions

 MAIN (testmon)
 

Macro Definition Documentation

#define TESTC (   name)    temp=epicsAtomicGetSizeT(&name::num_instances); ok &= temp==0; testDiag("num. live " #name " %u", (unsigned)temp)

Typedef Documentation

typedef epicsGuard<epicsMutex> Guard

Definition at line 19 of file testmon.cpp.

Function Documentation

MAIN ( testmon  )

Definition at line 345 of file testmon.cpp.

346 {
347  testPlan(79);
348  TEST_METHOD(TestMonitor, test_event);
349  TEST_METHOD(TestMonitor, test_share);
350  TEST_METHOD(TestMonitor, test_ds_no_start);
351  TEST_METHOD(TestMonitor, test_overflow_upstream);
352  TEST_METHOD(TestMonitor, test_overflow_downstream);
354  int ok = 1;
355  size_t temp;
356 #define TESTC(name) temp=epicsAtomicGetSizeT(&name::num_instances); ok &= temp==0; testDiag("num. live " #name " %u", (unsigned)temp)
357  TESTC(GWChannel);
362 #undef TESTC
363  testOk(ok, "All instances free'd");
364  return testDone();
365 }
void testPlan(int plan)
Declare the test plan, required.
#define TESTC(name)
#define TEST_METHOD(klass, method)
Definition: pvUnitTest.h:98
int testDone(void)
Mark the end of testing.
static void testCounts()
Definition: utilities.cpp:620
int testOk(int pass, const char *fmt,...)