summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorChris <chrisjohnsonmail@gmail.com>2019-02-01 03:53:08 (GMT)
committerChris <chrisjohnsonmail@gmail.com>2019-02-01 03:56:34 (GMT)
commitb2b24622500dc05cf40a2cb59047d2e8491f4a49 (patch)
tree55ae2b5cf2b0ab0656f6e2c63849e691422a5ed6 /googletest/src
parentfe519d64a6e0e69585b59f14c129dc4e2aa40233 (diff)
downloadgoogletest-b2b24622500dc05cf40a2cb59047d2e8491f4a49.zip
googletest-b2b24622500dc05cf40a2cb59047d2e8491f4a49.tar.gz
googletest-b2b24622500dc05cf40a2cb59047d2e8491f4a49.tar.bz2
fix: Add Arduino to embedded platform list
Added Arduino to the embedded platform list to allow for a stubbed out version of GetCurrentDir.
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest-filepath.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest-filepath.cc b/googletest/src/gtest-filepath.cc
index 204d460..4f233e8 100644
--- a/googletest/src/gtest-filepath.cc
+++ b/googletest/src/gtest-filepath.cc
@@ -92,8 +92,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
- // Windows CE doesn't have a current directory, so we just return
+#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
// something reasonable.
return FilePath(kCurrentDirectoryString);
#elif GTEST_OS_WINDOWS