fix: Add Arduino to embedded platform list

Added Arduino to the embedded platform list to allow for a stubbed out version
of GetCurrentDir.
This commit is contained in:
Chris 2019-01-31 21:53:08 -06:00
parent fe519d64a6
commit b2b2462250

View File

@ -92,8 +92,8 @@ static bool IsPathSeparator(char c) {
// Returns the current working directory, or "" if unsuccessful. // Returns the current working directory, or "" if unsuccessful.
FilePath FilePath::GetCurrentDir() { FilePath FilePath::GetCurrentDir() {
#if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE || GTEST_OS_WINDOWS_RT #if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE || GTEST_OS_WINDOWS_RT || ARDUINO
// Windows CE doesn't have a current directory, so we just return // Windows CE and Arduino don't have a current directory, so we just return
// something reasonable. // something reasonable.
return FilePath(kCurrentDirectoryString); return FilePath(kCurrentDirectoryString);
#elif GTEST_OS_WINDOWS #elif GTEST_OS_WINDOWS