[Coverity] Unchecked return value (CHECKED_RETURN)

This commit is contained in:
Peter D. Barnes, Jr.
2013-05-15 16:26:46 -04:00
parent 764cedd639
commit 80b15ea83f
5 changed files with 50 additions and 16 deletions

View File

@@ -49,6 +49,8 @@
#include "ns3/config.h"
#include "ns3/ns2-mobility-helper.h"
NS_LOG_COMPONENT_DEFINE ("ns2-mobility-helper-test-suite");
namespace ns3 {
// -----------------------------------------------------------------------------
@@ -227,7 +229,10 @@ private:
void DoTeardown ()
{
Names::Clear ();
std::remove (m_traceFile.c_str ());
if (std::remove (m_traceFile.c_str ()))
{
NS_LOG_ERROR ("Failed to delete file " << m_traceFile);
}
Simulator::Destroy ();
}