Browse 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 14 years ago
parent
commit
c5f3332cd3
1 changed files with 2 additions and 1 deletions
  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);