From a2efb0db50a68b57fc4c685a2bd747db38136dd2 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 19 Jan 2015 11:24:13 +0100 Subject: [PATCH] base_cpp: checking for memory leaks after tests --- base_cpp/test/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base_cpp/test/main.cc b/base_cpp/test/main.cc index 2fb4dbe..6184ee8 100644 --- a/base_cpp/test/main.cc +++ b/base_cpp/test/main.cc @@ -35,6 +35,8 @@ #include #include +#include + PT_MAIN("Base C++") { unsigned int max_threads = static_cast(2 * partest::TestSuite::GetDefaultNumThreads()); @@ -47,4 +49,6 @@ PT_MAIN("Base C++") { PT_RUN(embb::base::test::AtomicTest); PT_RUN(embb::base::test::MemoryAllocationTest); PT_RUN(embb::base::test::ThreadTest); + + PT_EXPECT(embb_get_bytes_allocated() == 0); } -- libgit2 0.26.0