diff options
Diffstat (limited to 'googletest/src')
-rw-r--r-- | googletest/src/gtest_main.cc | 16 |
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 |