summaryrefslogtreecommitdiff
path: root/graphics/asymptote/cxxtests/src/testMain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/cxxtests/src/testMain.cc')
-rw-r--r--graphics/asymptote/cxxtests/src/testMain.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/asymptote/cxxtests/src/testMain.cc b/graphics/asymptote/cxxtests/src/testMain.cc
new file mode 100644
index 0000000000..596daa3ce9
--- /dev/null
+++ b/graphics/asymptote/cxxtests/src/testMain.cc
@@ -0,0 +1,14 @@
+#include <gtest/gtest.h>
+#include <gmock/gmock.h>
+#include "common.h"
+
+int main(int argc, char* argv[])
+{
+#if defined(USEGC)
+ GC_init();
+#endif
+
+ ::testing::InitGoogleTest(&argc,argv);
+ ::testing::InitGoogleMock(&argc,argv);
+ return RUN_ALL_TESTS();
+}