From a42db849c4ebb20a959aa772961ccedfaaa64b9e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sat, 14 Oct 2017 11:16:56 +0200 Subject: [PATCH] [DEV] add a test to check leak (in comment) --- test/testVector.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/testVector.cpp b/test/testVector.cpp index 007f368..c1b9186 100644 --- a/test/testVector.cpp +++ b/test/testVector.cpp @@ -272,3 +272,17 @@ TEST(TestVector, allocateElementAtTheCorectMoment) { } EXPECT_EQ(isDestroy, 0); } +/* +TEST(TestVector, allocateBench) { + while (1) { + etk::Vector list; + //list.reserve(1024*1024); + for (size_t iii=0; iii < 1024*1024; ++iii) { + list.pushBack(66); + } + EXPECT_EQ(list.size(), 1024*1024); + } +} +*/ + +