Fixed ref counts

p4#: 20890
This commit is contained in:
Magne Sjaastad 2013-03-13 14:41:54 +01:00
parent 973eb5c8f7
commit d33a27a082

View File

@ -40,10 +40,10 @@ TEST(RigGridCollection, BasicTest)
RigGridCollection gridCollection;
gridCollection.addCase(eclipseCase.p());
EXPECT_EQ(mainGridA->refCount(), 3);
EXPECT_EQ(mainGridA->refCount(), 2);
cvf::ref<RigMainGrid> mainGridB = mainGridA;
EXPECT_EQ(mainGridA->refCount(), 4);
EXPECT_EQ(mainGridA->refCount(), 3);
cvf::ref<RigMainGrid> existingGrid = gridCollection.findEqualGrid(mainGridB.p());
EXPECT_TRUE(existingGrid.notNull());