mirror of
https://github.com/google/googletest.git
synced 2025-12-01 00:27:46 -05:00
Merge pull request #2041 from ciband:chore/fix_library_json
PiperOrigin-RevId: 230554814
This commit is contained in:
@@ -32,13 +32,7 @@
|
||||
|
||||
#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);
|
||||
testing::InitGoogleTest();
|
||||
}
|
||||
|
||||
void loop() { RUN_ALL_TESTS(); }
|
||||
|
||||
Reference in New Issue
Block a user