libCom/test: ipAddrToAsciiTest skip cleanup unless valgrind is possible

This commit is contained in:
Michael Davidsaver
2017-04-15 19:34:04 -04:00
parent 352fd32c45
commit 1f90e98491

View File

@@ -7,6 +7,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <valgrind/valgrind.h>
#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();
}