Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
leak_test.cc
1 #include <gtest/gtest.h>
2 
3 /**
4  * A test case that leaks memory, to check that we can spot this in valgrind
5  */
6 TEST(Leak, ThisTestLeaks) { EXPECT_TRUE(new int[45]); }
7 
8 #ifndef __NO_MAIN__
9 int main(int argc, char **argv) {
10  ::testing::InitGoogleTest(&argc, argv);
11  return RUN_ALL_TESTS();
12 }
13 #endif