Sha256: 20881de14a136cd52ecc33b49b48f0f78587fb67da24c211c62f317ca260b022
Contents?: true
Size: 381 Bytes
Versions: 35
Compression:
Stored size: 381 Bytes
Contents
#include "stdafx.h" #include "MemoryLeakDetector.h" TEST(TestBuild, ShouldAlwaysBeInDebug) { #ifndef _DEBUG FAIL() << "Always compile in _DEBUG mode to detect memory leaks"; #endif } int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); UnitTest::GetInstance()->listeners().Append(new MemoryLeakDetector()); return RUN_ALL_TESTS(); }
Version data entries
35 entries across 35 versions & 1 rubygems