Log attempted file path on failure to open pcap file.
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Tue, 18 Aug 2015 16:34:50 -0700
changeset 11605 38d79f882224
parent 11604 5e68cadf54a2
child 11606 98fa74311b21
Log attempted file path on failure to open pcap file.
src/test/ns3tcp/ns3tcp-loss-test-suite.cc
src/test/ns3tcp/ns3tcp-state-test-suite.cc
--- a/src/test/ns3tcp/ns3tcp-loss-test-suite.cc	Tue Aug 18 16:33:58 2015 -0700
+++ b/src/test/ns3tcp/ns3tcp-loss-test-suite.cc	Tue Aug 18 16:34:50 2015 -0700
@@ -132,7 +132,9 @@
   else
     {
       m_pcapFile.Open (m_pcapFilename, std::ios::in|std::ios::binary);
-      NS_ABORT_MSG_UNLESS (m_pcapFile.GetDataLinkType () == PCAP_LINK_TYPE, "Wrong response vectors in directory");
+      NS_ABORT_MSG_UNLESS (m_pcapFile.GetDataLinkType () == PCAP_LINK_TYPE,
+                           "Wrong response vectors in directory: opening " <<
+                           m_pcapFilename);
     }
 }
 
--- a/src/test/ns3tcp/ns3tcp-state-test-suite.cc	Tue Aug 18 16:33:58 2015 -0700
+++ b/src/test/ns3tcp/ns3tcp-state-test-suite.cc	Tue Aug 18 16:34:50 2015 -0700
@@ -129,7 +129,9 @@
   else
     {
       m_pcapFile.Open (m_pcapFilename, std::ios::in|std::ios::binary);
-      NS_ABORT_MSG_UNLESS (m_pcapFile.GetDataLinkType () == PCAP_LINK_TYPE, "Wrong response vectors in directory");
+      NS_ABORT_MSG_UNLESS (m_pcapFile.GetDataLinkType () == PCAP_LINK_TYPE,
+                           "Wrong response vectors in directory: opening " <<
+                           m_pcapFilename);
     }
 }