From 96603a1f86b096cf674bd54bfae73d4061d3d81f Mon Sep 17 00:00:00 2001 From: Peng Li Date: Tue, 17 Jul 2018 16:10:27 +0800 Subject: [PATCH] Add gtest main file --- test/TestMain.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/TestMain.cpp diff --git a/test/TestMain.cpp b/test/TestMain.cpp new file mode 100644 index 0000000..3568448 --- /dev/null +++ b/test/TestMain.cpp @@ -0,0 +1,11 @@ +#include "gtest/gtest.h" + +int main(int argc, char** argv) { + // Disables elapsed time by default. + ::testing::GTEST_FLAG(print_time) = false; + + // This allows the user to override the flag on the command line. + ::testing::InitGoogleTest(&argc, argv); + + return RUN_ALL_TESTS(); +} -- 2.11.0