aboutsummaryrefslogtreecommitdiff
path: root/VMProtectCon.Tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'VMProtectCon.Tests/main.cpp')
-rw-r--r--VMProtectCon.Tests/main.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/VMProtectCon.Tests/main.cpp b/VMProtectCon.Tests/main.cpp
new file mode 100644
index 0000000..cb39d98
--- /dev/null
+++ b/VMProtectCon.Tests/main.cpp
@@ -0,0 +1,28 @@
+#include "precompiled.h"
+
+#ifdef WIN
+#include <crtdbg.h> /* Heap verifying */
+#elif MACOSX
+#define __ICONS__
+#include <Cocoa/Cocoa.h>
+#endif
+
+
+int main(int argc, char **argv)
+{
+#ifdef WIN
+ /* Set up heap verifying. */
+ _CrtSetDbgFlag(_CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ) | _CRTDBG_LEAK_CHECK_DF);
+#elif MACOSX
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+#endif
+
+ testing::InitGoogleTest(&argc, argv);
+ int rc = RUN_ALL_TESTS();
+
+#ifdef MACOSX
+ [pool release];
+#endif
+
+ return rc;
+}