From 9fcc9955bcd166e37fe459bbd8b5f2b2e08bca82 Mon Sep 17 00:00:00 2001 From: Pavel Boyko Date: Mon, 16 Nov 2009 13:32:56 +0300 Subject: [PATCH] [aodv] Use GetTempDir() to store pcap traces in regression tests --- src/routing/manet/aodv/test/aodv-regression.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routing/manet/aodv/test/aodv-regression.cc b/src/routing/manet/aodv/test/aodv-regression.cc index 5e4a676ae..1a25e3a17 100644 --- a/src/routing/manet/aodv/test/aodv-regression.cc +++ b/src/routing/manet/aodv/test/aodv-regression.cc @@ -146,7 +146,7 @@ ChainRegressionTest::CreateDevices () p.Stop (m_time); // 4. write PCAP - std::string prefix = (WRITE_VECTORS ? NS_TEST_SOURCEDIR : std::string("./")) + PREFIX; + std::string prefix = (WRITE_VECTORS ? NS_TEST_SOURCEDIR : GetTempDir ()) + PREFIX; wifiPhy.EnablePcapAll (prefix); } @@ -158,7 +158,7 @@ ChainRegressionTest::CheckResults () std::ostringstream os1, os2; // File naming conventions are hard-coded here. os1 << NS_TEST_SOURCEDIR << PREFIX << "-" << i << "-0.pcap"; - os2 << "./" << PREFIX << "-" << i << "-0.pcap"; + os2 << GetTempDir () << PREFIX << "-" << i << "-0.pcap"; uint32_t sec(0), usec(0); bool diff = PcapFile::Diff (os1.str(), os2.str(), sec, usec);