vxwork putenv

This commit is contained in:
Matej Sekoranja
2014-11-13 06:53:21 -05:00
parent b3c030d946
commit 503c004718

View File

@ -12,8 +12,7 @@
#define TESTSERVERNOMAIN
#include <stdlib.h>
#include <envDefs.h>
#include <epicsExit.h>
#include <epicsUnitTest.h>
#include <testMain.h>
@ -95,8 +94,9 @@ class ChannelAccessIFRemoteTest: public ChannelAccessIFTest {
MAIN(testChannelAccess)
{
putenv(const_cast<char*>("EPICS_PVA_ADDR_LIST=127.0.0.1"));
putenv(const_cast<char*>("EPICS_PVA_AUTO_ADDR_LIST=0"));
// note: this leaks memory (uses putenv)
epicsEnvSet("EPICS_PVA_ADDR_LIST", "127.0.0.1");
epicsEnvSet("EPICS_PVA_AUTO_ADDR_LIST", "0");
SET_LOG_LEVEL(logLevelError);
ChannelAccessIFRemoteTest caRemoteTest;