]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Test fixes in dhcpv6.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 9 May 2012 16:31:45 +0000 (18:31 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 9 May 2012 16:31:45 +0000 (18:31 +0200)
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc

index a42324fdb4aee1ac65ecab1284fdaa3982fc3e7c..1ef5791ce26256c31b9f8aa7c033dcb241b5124e 100644 (file)
@@ -130,7 +130,7 @@ TEST_F(Dhcpv6SrvTest, DUID) {
         vector<uint8_t> mac(len-8);
         vector<uint8_t> zeros(len-8, 0);
         data.readVector(mac, len-8);
-        EXPECT_NE(mac, zeros);
+        EXPECT_TRUE(mac != zeros);
         break;
     }
     case DUID_EN: {
@@ -139,8 +139,12 @@ TEST_F(Dhcpv6SrvTest, DUID) {
         vector<uint8_t> content(len-2);
         data.readVector(content, len-2);
         EXPECT_FALSE(isRangeZero(content.begin(), content.end()));
+        break;
+    }
+    case DUID_LL: {
+        // not supported yet
+        cout << "Test not implemented for DUID-LL yet." << endl;
     }
-    case DUID_LL: // not supported yet
     case DUID_UUID: // not supported yet
     default:
         cout << "Not supported duid type=" << duid_type << endl;