[DEV] add a test to check leak (in comment)
This commit is contained in:
parent
0dbd99ac34
commit
a42db849c4
@ -272,3 +272,17 @@ TEST(TestVector, allocateElementAtTheCorectMoment) {
|
||||
}
|
||||
EXPECT_EQ(isDestroy, 0);
|
||||
}
|
||||
/*
|
||||
TEST(TestVector, allocateBench) {
|
||||
while (1) {
|
||||
etk::Vector<uint8_t> list;
|
||||
//list.reserve(1024*1024);
|
||||
for (size_t iii=0; iii < 1024*1024; ++iii) {
|
||||
list.pushBack(66);
|
||||
}
|
||||
EXPECT_EQ(list.size(), 1024*1024);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user