src/internet-stack/ipv6-extension-header-test-suite.cc
changeset 6775 0783f42a364b
parent 6774 034f362af24d
--- a/src/internet-stack/ipv6-extension-header-test-suite.cc	Mon Jan 10 15:55:29 2011 -0800
+++ b/src/internet-stack/ipv6-extension-header-test-suite.cc	Mon Jan 17 12:53:20 2011 -0800
@@ -38,7 +38,7 @@
 public:
   TestEmptyOptionField () : TestCase("TestEmptyOptionField") {}
 
-  virtual bool DoRun()
+  virtual void DoRun()
   {
     Ipv6ExtensionDestinationHeader header;
     NS_TEST_EXPECT_MSG_EQ(header.GetSerializedSize() % 8, 0, "length of extension header is not a multiple of 8");
@@ -49,8 +49,6 @@
 
     const uint8_t* data = buf.PeekData();
     NS_TEST_EXPECT_MSG_EQ(*(data+2), 1, "padding is missing"); //expecting a padN header
-
-    return GetErrorStatus();
   }
 };
 
@@ -87,7 +85,7 @@
 public:
   TestOptionWithoutAlignment () : TestCase("TestOptionWithoutAlignment") {}
 
-  virtual bool DoRun()
+  virtual void DoRun()
   {
     Ipv6ExtensionDestinationHeader header;
     OptionWithoutAlignmentHeader optionHeader;
@@ -102,8 +100,6 @@
 
     const uint8_t* data = buf.PeekData();
     NS_TEST_EXPECT_MSG_EQ(*(data+2), OptionWithoutAlignmentHeader::TYPE, "option without alignment is not first in header field");
-
-    return GetErrorStatus();
   }
 };
 
@@ -150,7 +146,7 @@
 public:
   TestOptionWithAlignment () : TestCase("TestOptionWithAlignment") {}
 
-  virtual bool DoRun()
+  virtual void DoRun()
   {
     Ipv6ExtensionDestinationHeader header;
     OptionWithAlignmentHeader optionHeader;
@@ -169,8 +165,6 @@
     NS_TEST_EXPECT_MSG_EQ(*(data+4), OptionWithAlignmentHeader::TYPE, "option with alignment is not padded correctly");
     NS_TEST_EXPECT_MSG_EQ(*(data+8), 1, "padding is missing"); //expecting a padN header
     NS_TEST_EXPECT_MSG_EQ(*(data+10), jumboHeader.GetType(), "option with alignment is not padded correctly");
-
-    return GetErrorStatus();
   }
 };
 
@@ -195,7 +189,7 @@
 public:
   TestFulfilledAlignment () : TestCase("TestCorrectAlignment") {}
 
-  virtual bool DoRun()
+  virtual void DoRun()
   {
     Ipv6ExtensionDestinationHeader header;
     Ipv6OptionJumbogramHeader jumboHeader; //has an alignment of 4n+2
@@ -212,8 +206,6 @@
     const uint8_t* data = buf.PeekData();
     NS_TEST_EXPECT_MSG_EQ(*(data+2), jumboHeader.GetType(), "option with fulfilled alignment is padded anyway");
     NS_TEST_EXPECT_MSG_EQ(*(data+8), OptionWithAlignmentHeader::TYPE, "option with fulfilled alignment is padded anyway");
-
-    return GetErrorStatus();
   }
 };