summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorChris <chrisjohnsonmail@gmail.com>2019-01-03 18:12:19 (GMT)
committerChris <chrisjohnsonmail@gmail.com>2019-01-03 18:12:19 (GMT)
commit4d62b5b9aef027a8c4f4432ecc661de0b87b4f46 (patch)
tree5a94250423b6624e9a5782547c0f2fa48ce80d8a /googletest/src
parentde99386b67a32a955c7b6215c4b2a50066dfa6a3 (diff)
downloadgoogletest-4d62b5b9aef027a8c4f4432ecc661de0b87b4f46.zip
googletest-4d62b5b9aef027a8c4f4432ecc661de0b87b4f46.tar.gz
googletest-4d62b5b9aef027a8c4f4432ecc661de0b87b4f46.tar.bz2
fix: Remove Arduino entry points
Improved flexibility by removing the Arduino entry points in favor of manual calls to setup/loop that the user can call from their entry point. This is the more common use case for Arudino. Also added the gtest/gmock_main files to the PlatformIO ignore list since we are not supporting that feature.
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest_main.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/googletest/src/gtest_main.cc b/googletest/src/gtest_main.cc
index ee1ae52..2113f62 100644
--- a/googletest/src/gtest_main.cc
+++ b/googletest/src/gtest_main.cc
@@ -30,24 +30,8 @@
#include <stdio.h>
#include "gtest/gtest.h"
-#ifdef ARDUINO
-void setup() {
- // Since Arduino doesn't have a command line, fake out the argc/argv arguments
- int argc = 1;
- const auto arg0 = "PlatformIO";
- char* argv0 = const_cast<char*>(arg0);
- char** argv = &argv0;
-
- testing::InitGoogleTest(&argc, argv);
-}
-
-void loop() { RUN_ALL_TESTS(); }
-
-#else
-
GTEST_API_ int main(int argc, char **argv) {
printf("Running main() from %s\n", __FILE__);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
-#endif