--- a/src/applications/udp-client-server/udp-client-server-test.cc Mon Jan 10 15:55:29 2011 -0800
+++ b/src/applications/udp-client-server/udp-client-server-test.cc Mon Jan 17 12:53:20 2011 -0800
@@ -48,7 +48,7 @@
virtual ~UdpClientServerTestCase ();
private:
- virtual bool DoRun (void);
+ virtual void DoRun (void);
};
@@ -61,7 +61,7 @@
{
}
-bool UdpClientServerTestCase::DoRun (void)
+void UdpClientServerTestCase::DoRun (void)
{
NodeContainer n;
n.Create (2);
@@ -102,8 +102,6 @@
NS_TEST_ASSERT_MSG_EQ (server.GetServer ()->GetLost (), 0, "Packets were lost !");
NS_TEST_ASSERT_MSG_EQ (server.GetServer ()->GetReceived (), 8, "Did not receive expected number of packets !");
-
- return GetErrorStatus ();
}
/**
@@ -118,7 +116,7 @@
virtual ~UdpTraceClientServerTestCase ();
private:
- virtual bool DoRun (void);
+ virtual void DoRun (void);
};
@@ -131,7 +129,7 @@
{
}
-bool UdpTraceClientServerTestCase::DoRun (void)
+void UdpTraceClientServerTestCase::DoRun (void)
{
NodeContainer n;
n.Create (2);
@@ -167,8 +165,6 @@
NS_TEST_ASSERT_MSG_EQ (server.GetServer ()->GetLost (), 0, "Packets were lost !");
NS_TEST_ASSERT_MSG_EQ (server.GetServer ()->GetReceived (), 247, "Did not receive expected number of packets !");
-
- return GetErrorStatus ();
}
@@ -183,7 +179,7 @@
virtual ~PacketLossCounterTestCase ();
private:
- virtual bool DoRun (void);
+ virtual void DoRun (void);
};
@@ -196,7 +192,7 @@
{
}
-bool PacketLossCounterTestCase::DoRun (void)
+void PacketLossCounterTestCase::DoRun (void)
{
PacketLossCounter lossCounter(32);
lossCounter.NotifyReceived(32); //out of order
@@ -245,9 +241,6 @@
lossCounter.NotifyReceived(i);
}
NS_TEST_ASSERT_MSG_EQ (lossCounter.GetLost(), 9, "Check that 9 (6+1+2) packet are lost");
-
-
- return GetErrorStatus ();
}
class UdpClientServerTestSuite: public TestSuite
{