projects
/
trackerpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc61623
)
Add gtest main file
author
Peng Li
<seudut@gmail.com>
Tue, 17 Jul 2018 08:10:27 +0000
(16:10 +0800)
committer
Peng Li
<seudut@gmail.com>
Tue, 17 Jul 2018 08:10:27 +0000
(16:10 +0800)
test/TestMain.cpp
[new file with mode: 0644]
patch
|
blob
diff --git a/test/TestMain.cpp
b/test/TestMain.cpp
new file mode 100644
(file)
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();
+}