# HG changeset patch # User Peter D. Barnes, Jr. # Date 1439940890 25200 # Node ID 38d79f882224aff1a4817afba3c517c3cb35363c # Parent 5e68cadf54a26f5c6573cd2b7b45bdb279e9f737 Log attempted file path on failure to open pcap file. diff -r 5e68cadf54a2 -r 38d79f882224 src/test/ns3tcp/ns3tcp-loss-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); } } diff -r 5e68cadf54a2 -r 38d79f882224 src/test/ns3tcp/ns3tcp-state-test-suite.cc --- 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); } }