diff options
author | Sergey <sergionso@gmail.com> | 2023-03-02 22:31:26 (GMT) |
---|---|---|
committer | Sergey Markelov <sergey@solidstatenetworks.com> | 2023-03-10 16:30:49 (GMT) |
commit | 2d3b36d40a04a34edd2d00cdc6e30a20602bb847 (patch) | |
tree | 06f943317ba1ac3e21b207d877027a382e0dc9da /googletest/include | |
parent | 50e07d1c92875e66138d5d5ee3bb46ef237115bb (diff) | |
download | googletest-2d3b36d40a04a34edd2d00cdc6e30a20602bb847.zip googletest-2d3b36d40a04a34edd2d00cdc6e30a20602bb847.tar.gz googletest-2d3b36d40a04a34edd2d00cdc6e30a20602bb847.tar.bz2 |
Environment variables are accessible in UWP/WinRT appsrefs/pull/4180/head
Environment variables, for example `GTEST_FILTER`, `GTEST_OUTPUT` can be set
before getting WinRT app run. GoogleTest can read environment variables and use
them. It's easier than setting and passing command line parameters to WinRT app.
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 0160fad..eb78992 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -2169,8 +2169,8 @@ inline const char* StrError(int errnum) { return strerror(errnum); } inline const char* GetEnv(const char* name) { #if defined(GTEST_OS_WINDOWS_MOBILE) || defined(GTEST_OS_WINDOWS_PHONE) || \ - defined(GTEST_OS_WINDOWS_RT) || defined(GTEST_OS_ESP8266) || \ - defined(GTEST_OS_XTENSA) || defined(GTEST_OS_QURT) + defined(GTEST_OS_ESP8266) || defined(GTEST_OS_XTENSA) || \ + defined(GTEST_OS_QURT) // We are on an embedded platform, which has no environment variables. static_cast<void>(name); // To prevent 'unused argument' warning. return nullptr; |