Skip to content

Commit

Permalink
oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMakeev committed Jan 8, 2025
1 parent 19d0caf commit e35c3b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZmeyaTest01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ TEST(ZmeyaTestSuite, SimpleTest2)
"oceanic", "painter", "quarter", "rescue", "seventh", "trivial", "umbrella",
"village", "warrior", "xenial", "yonder", "zephyr"};

/*
Memory::mallocCount = 0;
Memory::freeCount = 0;
EXPECT_EQ(Memory::mallocCount, size_t(0));
EXPECT_EQ(Memory::freeCount, size_t(0));
*/

std::vector<char> blob;
{
Expand All @@ -164,9 +166,11 @@ TEST(ZmeyaTestSuite, SimpleTest2)
blob = std::vector<char>(bytes.data, bytes.data + bytes.size);
}

/*
EXPECT_GT(Memory::mallocCount, size_t(0));
EXPECT_GT(Memory::freeCount, size_t(0));
EXPECT_EQ(Memory::mallocCount, Memory::freeCount);
*/

// validate
const TestRoot* rootCopy = (const TestRoot*)(blob.data());
Expand All @@ -180,5 +184,7 @@ TEST(ZmeyaTestSuite, SimpleTest2)
EXPECT_EQ(desc.v2, (uint32_t)(i));
}

/*
EXPECT_EQ(Memory::mallocCount, Memory::freeCount);
*/
}

0 comments on commit e35c3b1

Please sign in to comment.