Aktualizr
C++ SOTA Client
tests
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
Generated by
1.8.13