Parcourir la source

made sure the assignment test covers all cases.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac381@3620 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya il y a 14 ans
Parent
commit
c5f3332cd3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/dns/tests/tsigkey_unittest.cc

+ 2 - 1
src/lib/dns/tests/tsigkey_unittest.cc

@@ -97,7 +97,8 @@ TEST_F(TSIGKeyTest, assignment) {
 
     // Check if the copied data is valid even after the original is deleted
     TSIGKey* copy2 = new TSIGKey(original);
-    TSIGKey copy3 = *copy2;
+    TSIGKey copy3(original);
+    copy3 = *copy2;
     delete copy2;
     compareTSIGKeys(original, copy3);