diff options
author | Abseil Team <absl-team@google.com> | 2019-09-05 22:41:05 (GMT) |
---|---|---|
committer | Gennadiy Rozental <rogeeff@google.com> | 2019-09-06 12:00:18 (GMT) |
commit | 3f05f651ae3621db58468153e32016bc1397800b (patch) | |
tree | 77407735d82eb3d0b30f2940c5fab4389650febe /googletest/src/gtest-filepath.cc | |
parent | 6123df929dbae61032417a42531d9e99d66df95b (diff) | |
download | googletest-3f05f651ae3621db58468153e32016bc1397800b.zip googletest-3f05f651ae3621db58468153e32016bc1397800b.tar.gz googletest-3f05f651ae3621db58468153e32016bc1397800b.tar.bz2 |
Googletest export
Extend gtest-port and stubs for ESP_PLATFORM
ESP_PLATFORM is the macro used to indicate compilation for the ESP32
using the esp-idf. This isn't a fully posix compatible system so
various features of google test need to be stubbed out in order for
it to work. It's oddly similar to the GTEST_OS_WINDOWS_PHONE setup.
PiperOrigin-RevId: 267471968
Diffstat (limited to 'googletest/src/gtest-filepath.cc')
-rw-r--r-- | googletest/src/gtest-filepath.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest-filepath.cc b/googletest/src/gtest-filepath.cc index 322fbb1..bd7b99f 100644 --- a/googletest/src/gtest-filepath.cc +++ b/googletest/src/gtest-filepath.cc @@ -93,8 +93,8 @@ static bool IsPathSeparator(char c) { // Returns the current working directory, or "" if unsuccessful. FilePath FilePath::GetCurrentDir() { #if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE || \ - GTEST_OS_WINDOWS_RT || ARDUINO - // Windows CE and Arduino don't have a current directory, so we just return + GTEST_OS_WINDOWS_RT || ARDUINO || defined(ESP_PLATFORM) + // These platforms do not have a current directory, so we just return // something reasonable. return FilePath(kCurrentDirectoryString); #elif GTEST_OS_WINDOWS |