diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-06-11 15:50:51 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-06-11 15:50:51 -0400 |
commit | ba3acdf41b6bd2949a6280c39771c407d117cf44 (patch) | |
tree | cb55584ebb13e5c0e898440cefb2ee986506299f /cpp/test/Freeze/dbmap/Client.cpp | |
parent | More .gitignore fixes and fixed a bunch of clean rules in Makefile and Makefi... (diff) | |
download | ice-ba3acdf41b6bd2949a6280c39771c407d117cf44.tar.bz2 ice-ba3acdf41b6bd2949a6280c39771c407d117cf44.tar.xz ice-ba3acdf41b6bd2949a6280c39771c407d117cf44.zip |
Merge Freeze fixes from 3.2 branch
Diffstat (limited to 'cpp/test/Freeze/dbmap/Client.cpp')
-rw-r--r-- | cpp/test/Freeze/dbmap/Client.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp index 09ab3c7d745..d8b69750bda 100644 --- a/cpp/test/Freeze/dbmap/Client.cpp +++ b/cpp/test/Freeze/dbmap/Client.cpp @@ -205,12 +205,25 @@ run(const CommunicatorPtr& communicator, const string& envName) { const string dbName = "binary"; Freeze::ConnectionPtr connection = createConnection(communicator, envName); - ByteIntMap m(connection, dbName); + ByteIntMap m1(connection, dbName); // // Populate the database with the alphabet // - populateDB(connection, m); + populateDB(connection, m1); + + // + // Test ==, swap and communicator() + // + ByteIntMap m(connection, dbName + "-tmp"); + test(!(m == m1)); + test(m != m1); + m.swap(m1); + test(!(m == m1)); + test(m != m1); + test(m1.size() == 0); + test(m.communicator() == m1.communicator() == communicator); + vector<Byte>::const_iterator j; ByteIntMap::iterator p; |