summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/dbmap/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-06-11 15:50:51 -0400
committerBernard Normier <bernard@zeroc.com>2007-06-11 15:50:51 -0400
commitba3acdf41b6bd2949a6280c39771c407d117cf44 (patch)
treecb55584ebb13e5c0e898440cefb2ee986506299f /cpp/test/Freeze/dbmap/Client.cpp
parentMore .gitignore fixes and fixed a bunch of clean rules in Makefile and Makefi... (diff)
downloadice-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.cpp17
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;