diff --git a/src/vm/test/VirtualMachinePoolTest.cc b/src/vm/test/VirtualMachinePoolTest.cc
index 67c8396214..1c9913f8c0 100644
--- a/src/vm/test/VirtualMachinePoolTest.cc
+++ b/src/vm/test/VirtualMachinePoolTest.cc
@@ -69,42 +69,13 @@ const string xmls[] =
// This xml dump result has the STIMEs modified to 0000000000
const string xml_dump =
- "01A userVM one"
- "01000000000000000012B userSecond VM0200000000000"
- "00000";
+ "01A userVM one010000000000000000-112B userSecond VM020000000000000000-1";
const string xml_dump_where =
- "01A userVM one"
- "010000000000000000";
+ "01A userVM one010000000000000000-1";
const string xml_history_dump =
- "00one_user_test"
- "VM one01"
- "000000000000"
- "000"
- "010"
- "one_user_testSecond VM0"
- "200000000000"
- "000"
- "000"
- "A_hostname000"
- "0000"
- "0002"
- "0one_user_testVM one"
- "020"
- "000000000000"
- "0001"
- "C_hostname200"
- "0000"
- "000"
- "";
+ "00one_user_testVM one010000000000000000-110one_user_testSecond VM02000000000000000000A_hostname000000000020one_user_testVM one02000000000000000011C_hostname2000000000";
const string replacement = "0000000000";
@@ -271,11 +242,11 @@ public:
rc = vmp->dump(oss, "");
CPPUNIT_ASSERT(rc == 0);
-cout << endl << oss.str() << endl;
+
string result = oss.str();
result.replace(152, 10, replacement);
- result.replace(426, 10, replacement);
-
+ result.replace(449, 10, replacement);
+
CPPUNIT_ASSERT( result == xml_dump );
}
@@ -335,7 +306,7 @@ cout << endl << oss.str() << endl;
// Add a history item
vm->add_history(0, hostnames[0], vm_dirs[0], vmm_mads[0], tm_mads[0]);
- rc = vmp->update(vm);
+ rc = vmp->update(vm);
CPPUNIT_ASSERT( rc == 0 );
rc = vmp->update_history(vm);
@@ -353,7 +324,7 @@ cout << endl << oss.str() << endl;
// Add a history item
vm->add_history(1, hostnames[1], vm_dirs[1], vmm_mads[1], tm_mads[1]);
- rc = vmp->update(vm);
+ rc = vmp->update(vm);
CPPUNIT_ASSERT( rc == 0 );
rc = vmp->update_history(vm);
@@ -362,7 +333,7 @@ cout << endl << oss.str() << endl;
// Add another history item
vm->add_history(2, hostnames[2], vm_dirs[2], vmm_mads[2], tm_mads[2]);
- rc = vmp->update(vm);
+ rc = vmp->update(vm);
CPPUNIT_ASSERT( rc == 0 );
rc = vmp->update_history(vm);
@@ -394,8 +365,8 @@ cout << endl << oss.str() << endl;
string result = oss.str();
result.replace(159, 10, replacement);
- result.replace(440, 10, replacement);
- result.replace(950, 10, replacement);
+ result.replace(463, 10, replacement);
+ result.replace(995, 10, replacement);
CPPUNIT_ASSERT( result == xml_history_dump );
}