When I try to run googletest on my Espressif8266 i get lots of compile errors, and nothing gets uploaded to the ESP. IF i run the same on an espressive32 platform it works without issues.
I also see some problems in gtest-matchers.h
[{
"resource": "/d:/GitLab/GoogleTest_ESP32/.pio/libdeps/esp12e/googletest/googletest/include/gtest/gtest-matchers.h",
"owner": "cpp",
"severity": 8,
"message": "'is_trivially_copy_constructible' is not a member of 'std'",
"startLineNumber": 434,
"startColumn": 12,
"endLineNumber": 434,
"endColumn": 12
},{
"resource": "/d:/GitLab/GoogleTest_ESP32/.pio/libdeps/esp12e/googletest/googletest/include/gtest/gtest-matchers.h",
"owner": "cpp",
"severity": 8,
"message": "expected primary-expression before '>' token",
"startLineNumber": 434,
"startColumn": 50,
"endLineNumber": 434,
"endColumn": 50
},{
"resource": "/d:/GitLab/GoogleTest_ESP32/.pio/libdeps/esp12e/googletest/googletest/include/gtest/gtest-matchers.h",
"owner": "cpp",
"severity": 8,
"message": "'::value' has not been declared",
"startLineNumber": 434,
"startColumn": 51,
"endLineNumber": 434,
"endColumn": 51
},{
"resource": "/d:/GitLab/GoogleTest_ESP32/.pio/libdeps/esp12e/googletest/googletest/include/gtest/gtest-matchers.h",
"owner": "cpp",
"severity": 8,
"message": "body of constexpr function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]' not a return-statement",
"startLineNumber": 436,
"startColumn": 3,
"endLineNumber": 436,
"endColumn": 3
},{
"resource": "/d:/GitLab/GoogleTest_ESP32/.pio/libdeps/esp12e/googletest/googletest/include/gtest/gtest-matchers.h",
"owner": "cpp",
"severity": 8,
"message": "'static constexpr bool testing::internal::MatcherBase<T>::IsInlined() [with M = const testing::MatcherInterface<const std::basic_string<char>&>*; T = const std::basic_string<char>&]' called in a constant expression",
"startLineNumber": 438,
"startColumn": 58,
"endLineNumber": 438,
"endColumn": 58
}]
Building & Uploading...
In file included from .pio\libdeps\esp12e\googletest\googletest\include/gtest/internal/gtest-death-test-internal.h:46:0,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-death-test.h:43,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest.h:60,
from .pio\libdeps\esp12e\googletest\googlemock\include/gmock/gmock-cardinalities.h:48,
from .pio\libdeps\esp12e\googletest\googlemock\src\gmock-cardinalities.cc:34:
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h: In static member function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined()':
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:12: error: 'is_trivially_copy_constructible' is not a member of 'std'
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:50: error: expected primary-expression before '>' token
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:51: error: '::value' has not been declared
std::is_trivially_copy_constructible<M>::value &&
^
In file included from .pio\libdeps\esp12e\googletest\googletest\include/gtest/internal/gtest-death-test-internal.h:46:0,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-death-test.h:43,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest.h:60,
from test\bootstrap.cpp:1:
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h: In static member function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined()':
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:12: error: 'is_trivially_copy_constructible' is not a member of 'std'
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:50: error: expected primary-expression before '>' token
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:51: error: '::value' has not been declared
std::is_trivially_copy_constructible<M>::value &&
^
In file included from .pio\libdeps\esp12e\googletest\googletest\include/gtest/internal/gtest-death-test-internal.h:46:0,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-death-test.h:43,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest.h:60,
from .pio\libdeps\esp12e\googletest\googlemock\include/gmock/internal/gmock-internal-utils.h:50,
from .pio\libdeps\esp12e\googletest\googlemock\src\gmock-internal-utils.cc:36:
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h: In static member function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined()':
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:12: error: 'is_trivially_copy_constructible' is not a member of 'std'
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:50: error: expected primary-expression before '>' token
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:51: error: '::value' has not been declared
std::is_trivially_copy_constructible<M>::value &&
^
In file included from .pio\libdeps\esp12e\googletest\googletest\include/gtest/internal/gtest-death-test-internal.h:46:0,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-death-test.h:43,
from .pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest.h:60,
from test\test.cpp:1:
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h: In static member function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined()':
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:12: error: 'is_trivially_copy_constructible' is not a member of 'std'
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:50: error: expected primary-expression before '>' token
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:51: error: '::value' has not been declared
std::is_trivially_copy_constructible<M>::value &&
^
In file included from .pio\libdeps\esp12e\googletest\googletest\src\gtest-matchers.cc:35:0:
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h: In static member function 'static constexpr bool testing::internal::MatcherBase<T>::IsInlined()':
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:12: error: 'is_trivially_copy_constructible' is not a member of 'std'
std::is_trivially_copy_constructible<M>::value &&
^
.pio\libdeps\esp12e\googletest\googletest\include/gtest/gtest-matchers.h:434:50: error: expected primary-expression before '>' token
std::is_trivially_copy_constructible<M>::value &&
^```