mirror of
https://github.com/google/googletest.git
synced 2025-12-01 00:27:46 -05:00
Add ESP8266 configs to PlatformIO build
Added various conditional compliations for ESP8266 to stub out missing functionality.
This commit is contained in:
@@ -30,13 +30,20 @@
|
||||
#include <cstdio>
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#if defined GTEST_OS_ESP8266 || defined GTEST_OS_ESP32
|
||||
#if GTEST_OS_ESP8266 || GTEST_OS_ESP32
|
||||
# if GTEST_OS_ESP8266
|
||||
extern "C" {
|
||||
# endif
|
||||
void setup() {
|
||||
testing::InitGoogleTest();
|
||||
}
|
||||
|
||||
void loop() { RUN_ALL_TESTS(); }
|
||||
|
||||
# if GTEST_OS_ESP8266
|
||||
}
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
||||
GTEST_API_ int main(int argc, char **argv) {
|
||||
|
||||
Reference in New Issue
Block a user