From d230dcfdbf42bf5ab453b28f9fff1856e7c69c70 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 16 Oct 2010 15:07:03 -0700 Subject: [PATCH] fix valgrind issue in new global-routing test --- src/test/global-routing-test-suite.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/global-routing-test-suite.cc b/src/test/global-routing-test-suite.cc index 2444be08e..9482577c4 100644 --- a/src/test/global-routing-test-suite.cc +++ b/src/test/global-routing-test-suite.cc @@ -14,6 +14,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include "ns3/boolean.h" #include "ns3/config.h" #include "ns3/csma-helper.h" @@ -56,14 +57,16 @@ private: void HandleRead (Ptr); virtual bool DoRun (void); int m_count; - uint8_t m_firstInterface[16]; - uint8_t m_secondInterface[16]; + std::vector m_firstInterface; + std::vector m_secondInterface; }; // Add some help text to this case to describe what it is intended to test DynamicGlobalRoutingTestCase::DynamicGlobalRoutingTestCase () : TestCase ("Dynamic global routing example"), m_count (0) { + m_firstInterface.resize (16); + m_secondInterface.resize (16); } DynamicGlobalRoutingTestCase::~DynamicGlobalRoutingTestCase ()