From 1f90e984918f9ef169570ae79b37ee605284255f Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sat, 15 Apr 2017 19:34:04 -0400 Subject: [PATCH] libCom/test: ipAddrToAsciiTest skip cleanup unless valgrind is possible --- src/libCom/test/ipAddrToAsciiTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libCom/test/ipAddrToAsciiTest.cpp b/src/libCom/test/ipAddrToAsciiTest.cpp index c17c1a7cd..0999555b6 100644 --- a/src/libCom/test/ipAddrToAsciiTest.cpp +++ b/src/libCom/test/ipAddrToAsciiTest.cpp @@ -7,6 +7,8 @@ #include #include +#include + #define EPICS_PRIVATE_API #include "epicsMutex.h" @@ -156,6 +158,10 @@ MAIN(ipAddrToAsciiTest) // TODO: somehow test cancel of in-progress callback // allow time for any un-canceled transcations to crash us... epicsThreadSleep(1.0); + +#ifndef NVALGRIND ipAddrToAsciiEngine::cleanup(); +#endif + return testDone(); }