summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/GCSharedTest.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-01-14 02:19:55 +0000
committerMichi Henning <michi@zeroc.com>2005-01-14 02:19:55 +0000
commit080bf418974aaf0ab53d238b0d1aaae68eefaf42 (patch)
tree3de0321a8ecb81ef0df1e9b5dd923ba364a258ca /cpp/test/IceUtil/thread/GCSharedTest.cpp
parentUpdated VC++ 6 project file for new virtual inheritance test for GCShared. (diff)
downloadice-080bf418974aaf0ab53d238b0d1aaae68eefaf42.tar.bz2
ice-080bf418974aaf0ab53d238b0d1aaae68eefaf42.tar.xz
ice-080bf418974aaf0ab53d238b0d1aaae68eefaf42.zip
Changed test to leave _noDelete as true.
Diffstat (limited to 'cpp/test/IceUtil/thread/GCSharedTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/GCSharedTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/IceUtil/thread/GCSharedTest.cpp b/cpp/test/IceUtil/thread/GCSharedTest.cpp
index 73b7cc3c355..94c221dd67a 100644
--- a/cpp/test/IceUtil/thread/GCSharedTest.cpp
+++ b/cpp/test/IceUtil/thread/GCSharedTest.cpp
@@ -27,13 +27,13 @@ struct TestClass : public Thread, GCShared
bool basesAreVirtual()
{
- GCShared::_noDelete = true;
- Thread::_noDelete = false;
+ GCShared::_noDelete = false;
+ Thread::_noDelete = true;
//
// If we have virtual bases, there will be only one instance of the IceUtil::Shared base class,
- // so GCShared::_noDelete will be false after the second assignment.
+ // so GCShared::_noDelete will be true after the second assignment.
//
- return !GCShared::_noDelete;
+ return GCShared::_noDelete;
}
};