View | Details | Raw Unified | Return to bug 793
Collapse All | Expand All

(-)a/src/contrib/event-garbage-collector.cc (-1 / +1 lines)
 Lines 138-144    Link Here 
138
  Simulator::Run ();
138
  Simulator::Run ();
139
  NS_TEST_EXPECT_MSG_EQ (m_events, 0, "");
139
  NS_TEST_EXPECT_MSG_EQ (m_events, 0, "");
140
  NS_TEST_EXPECT_MSG_EQ (m_counter, 50, "");
140
  NS_TEST_EXPECT_MSG_EQ (m_counter, 50, "");
141
141
  Simulator::Destroy ();
142
  return false;
142
  return false;
143
}
143
}
144
144
(-)a/src/devices/wifi/wifi-test.cc (-1 / +1 lines)
 Lines 143-149    Link Here 
143
  m_propDelay.SetTypeId ("ns3::RandomPropagationDelayModel");
143
  m_propDelay.SetTypeId ("ns3::RandomPropagationDelayModel");
144
  m_mac.SetTypeId ("ns3::AdhocWifiMac");
144
  m_mac.SetTypeId ("ns3::AdhocWifiMac");
145
  RunOne ();
145
  RunOne ();
146
146
  Simulator::Destroy ();
147
  return false;
147
  return false;
148
}
148
}
149
149
(-)a/src/helper/ipv4-address-helper.cc (+4 lines)
 Lines 23-28    Link Here 
23
#include "ns3/net-device.h"
23
#include "ns3/net-device.h"
24
#include "ns3/ipv4.h"
24
#include "ns3/ipv4.h"
25
#include "ns3/ipv4-address-generator.h"
25
#include "ns3/ipv4-address-generator.h"
26
#include "ns3/simulator.h"
26
#include "ipv4-address-helper.h"
27
#include "ipv4-address-helper.h"
27
28
28
NS_LOG_COMPONENT_DEFINE("Ipv4AddressHelper");
29
NS_LOG_COMPONENT_DEFINE("Ipv4AddressHelper");
 Lines 200-205    Link Here 
200
NetworkAllocatorHelperTestCase::DoTeardown (void)
201
NetworkAllocatorHelperTestCase::DoTeardown (void)
201
{
202
{
202
  Ipv4AddressGenerator::Reset ();
203
  Ipv4AddressGenerator::Reset ();
204
  Simulator::Destroy ();
203
}
205
}
204
bool
206
bool
205
NetworkAllocatorHelperTestCase::DoRun (void)
207
NetworkAllocatorHelperTestCase::DoRun (void)
 Lines 246-251    Link Here 
246
AddressAllocatorHelperTestCase::DoTeardown (void)
248
AddressAllocatorHelperTestCase::DoTeardown (void)
247
{
249
{
248
  Ipv4AddressGenerator::Reset ();
250
  Ipv4AddressGenerator::Reset ();
251
  Simulator::Destroy ();
249
}
252
}
250
253
251
bool
254
bool
 Lines 337-342    Link Here 
337
ResetAllocatorHelperTestCase::DoTeardown (void)
340
ResetAllocatorHelperTestCase::DoTeardown (void)
338
{
341
{
339
  Ipv4AddressGenerator::Reset ();
342
  Ipv4AddressGenerator::Reset ();
343
  Simulator::Destroy ();
340
}
344
}
341
345
342
static class Ipv4AddressHelperTestSuite : public TestSuite
346
static class Ipv4AddressHelperTestSuite : public TestSuite
(-)a/src/internet-stack/ipv4-test.cc (-1 / +1 lines)
 Lines 94-100    Link Here 
94
  Ipv4InterfaceAddress output = interface->GetAddress (2);
94
  Ipv4InterfaceAddress output = interface->GetAddress (2);
95
  NS_TEST_ASSERT_MSG_EQ (ifaceAddr4, output,
95
  NS_TEST_ASSERT_MSG_EQ (ifaceAddr4, output,
96
      "The addresses should be identical");
96
      "The addresses should be identical");
97
97
  Simulator::Destroy ();
98
  return false;
98
  return false;
99
}
99
}
100
100
(-)a/src/internet-stack/ipv6-test.cc (-1 / +1 lines)
 Lines 135-141    Link Here 
135
135
136
  index = ipv6->GetInterfaceForAddress ("2001:ffff:5678:9000::1"); /* address we just remove */
136
  index = ipv6->GetInterfaceForAddress ("2001:ffff:5678:9000::1"); /* address we just remove */
137
  NS_TEST_ASSERT_MSG_EQ (index, (uint32_t) -1, "Address should not be found??");
137
  NS_TEST_ASSERT_MSG_EQ (index, (uint32_t) -1, "Address should not be found??");
138
138
  Simulator::Destroy ();
139
  return false;
139
  return false;
140
}//end DoRun
140
}//end DoRun
141
static class IPv6L3ProtocolTestSuite : public TestSuite
141
static class IPv6L3ProtocolTestSuite : public TestSuite
(-)a/src/node/ipv4-address-generator.cc (+3 lines)
 Lines 560-565    Link Here 
560
AddressAllocatorTestCase::DoTeardown (void)
560
AddressAllocatorTestCase::DoTeardown (void)
561
{
561
{
562
  Ipv4AddressGenerator::Reset ();
562
  Ipv4AddressGenerator::Reset ();
563
  Simulator::Destroy ();
563
}
564
}
564
565
565
566
 Lines 579-584    Link Here 
579
NetworkAndAddressTestCase::DoTeardown (void)
580
NetworkAndAddressTestCase::DoTeardown (void)
580
{
581
{
581
  Ipv4AddressGenerator::Reset ();
582
  Ipv4AddressGenerator::Reset ();
583
  Simulator::Destroy ();
582
}
584
}
583
585
584
bool
586
bool
 Lines 695-700    Link Here 
695
AddressCollisionTestCase::DoTeardown (void)
697
AddressCollisionTestCase::DoTeardown (void)
696
{
698
{
697
  Ipv4AddressGenerator::Reset ();
699
  Ipv4AddressGenerator::Reset ();
700
  Simulator::Destroy ();
698
}
701
}
699
bool
702
bool
700
AddressCollisionTestCase::DoRun (void)
703
AddressCollisionTestCase::DoRun (void)
(-)a/src/routing/aodv/aodv-test-suite.cc (-2 / +2 lines)
 Lines 474-480    Link Here 
474
    NS_TEST_EXPECT_MSG_EQ (rt.IsPrecursorListEmpty (), true, "trivial");
474
    NS_TEST_EXPECT_MSG_EQ (rt.IsPrecursorListEmpty (), true, "trivial");
475
    rt.GetPrecursors (prec);
475
    rt.GetPrecursors (prec);
476
    NS_TEST_EXPECT_MSG_EQ (prec.size (), 2, "trivial");
476
    NS_TEST_EXPECT_MSG_EQ (prec.size (), 2, "trivial");
477
477
    Simulator::Destroy ();
478
    return GetErrorStatus ();
478
    return GetErrorStatus ();
479
  }
479
  }
480
};
480
};
 Lines 528-534    Link Here 
528
    NS_TEST_EXPECT_MSG_EQ (rt.GetFlag (), INVALID, "trivial");
528
    NS_TEST_EXPECT_MSG_EQ (rt.GetFlag (), INVALID, "trivial");
529
    NS_TEST_EXPECT_MSG_EQ (rtable.DeleteRoute (Ipv4Address ("1.2.3.4")), true, "trivial");
529
    NS_TEST_EXPECT_MSG_EQ (rtable.DeleteRoute (Ipv4Address ("1.2.3.4")), true, "trivial");
530
    NS_TEST_EXPECT_MSG_EQ (rtable.DeleteRoute (Ipv4Address ("1.2.3.4")), false, "trivial");
530
    NS_TEST_EXPECT_MSG_EQ (rtable.DeleteRoute (Ipv4Address ("1.2.3.4")), false, "trivial");
531
531
    Simulator::Destroy ();
532
    return GetErrorStatus ();
532
    return GetErrorStatus ();
533
  }
533
  }
534
};
534
};

Return to bug 793