| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
internal change
PiperOrigin-RevId: 325799949
|
|\
| |
| |
| | |
PiperOrigin-RevId: 325220934
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 324016198
|
| |/ |
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 324014547
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test MatcherDeathTest.DoesNotBreakBareRegexMatching fails when
googletest uses simple regex instead of posix regex.
This partially fixes #2687
|
| |/
|/|
| |
| |
| |
| | |
Updated documentation for Value-Parameterized Tests: Per-default, a TEST_P without a corresponding INSTANTIATE_TEST_SUITE_P now causes a failing test.
PiperOrigin-RevId: 323622468
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 321178217
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
PiperOrigin-RevId: 320425648
|
| | |
| | |
| | |
| | |
| | |
| | | |
EXPECT_THROW and EXPECT_NO_THROW will now print exception type and message when an unexpected std::exception-derived error is thrown.
Fixes #2878
|
| | |
| | |
| | |
| | |
| | |
| | | |
Adding std:: namespace to string in the example
PiperOrigin-RevId: 320327910
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 320224740
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Building on OpenBSD 6.7 current fails due to implicit numeric
conversions:
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: amd64-unknown-openbsd6.7
Thread model: posix
InstalledDir: /usr/bin
In file included from /tmp/u/build/_deps/googletest-src/googletest/src/gtest-all.cc:45:
/tmp/u/build/_deps/googletest-src/googletest/src/gtest-port.cc:201:19: error: implicit conversion changes signedness:
'int' to 'unsigned long' [-Werror,-Wsign-conversion]
mib[5] = size / mib[4];
~ ^~~~~~
/tmp/u/build/_deps/googletest-src/googletest/src/gtest-port.cc:211:33: error: implicit conversion changes signedness:
'int' to 'unsigned long' [-Werror,-Wsign-conversion]
for (size_t i = 0; i < size / mib[4]; i++) {
~ ^~~~~~
/tmp/u/build/_deps/googletest-src/googletest/src/gtest-port.cc:215:10: error: implicit conversion changes signedness:
'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
return nthreads;
~~~~~~ ^~~~~~~~
/tmp/u/build/_deps/googletest-src/googletest/src/gtest-port.cc:201:17: error: implicit conversion loses integer
precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
mib[5] = size / mib[4];
~ ~~~~~^~~~~~~~
4 errors generated.
|
| |_|/
|/| |
| | |
| | |
| | | |
If target_compile_features is available and cxx_std_11.
This fix compilation with clang and gcc when c++11 isn't specified by user.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add Bazel build rules for gtest_list_output_unittest.py and correct some off-by-one line number expectations.
PiperOrigin-RevId: 318466071
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make sure sanitizers do not tamper with the stack here in StackLowerThanAddress().
PiperOrigin-RevId: 318082465
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 317696457
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Add unitTest for fixed TEST_P line number.
Use CodeLocation TestInfo struct.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | |
| | | | |
PiperOrigin-RevId: 317666280
|
| | | |
| | | |
| | | |
| | | | |
Fixes #2885
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
gtest.cc: fix a couple typos
s/paramaterized/parameterized/
PiperOrigin-RevId: 316878900
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds support for printing pointers of types char8_t, char16_t, and char32_t.
PiperOrigin-RevId: 316112767
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Change string matchers, like HasSubstr, to accept `string_view` input if available.
PiperOrigin-RevId: 315726484
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make visible ParseInt32 in case users have separate gmock/gtest libraries and hidden-by-default symbols.
This function is still considered an internal implementation detail and is subject to change without notice. It is still unsafe/unsupported to link together libraries built at different commits.
PiperOrigin-RevId: 315405429
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fail TEST_Ps or TYPED_TEST_Ps that are defined but are not instantiated, as well as the opposite case, where INSTANTIATE_TEST_SUITE_P or INSTANTIATE_TYPED_TEST_SUITE_P is used but without any matching TEST_P or TYPED_TEST_P.
PiperOrigin-RevId: 315255779
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Add missing static_cast to char32_t printer
PiperOrigin-RevId: 314925583
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adds support for printing the types char8_t, char16_t, and char32_t
This changes prints these types as Unicode code points. It is possible
that there is a better way of printing these types, but that change is
more complex, and the format in which Googletest prints these types is
subject to change if someone implements a better way of printing them.
This fixes the C++20 build, which removed support for printing these types.
https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2
Fixes #2854
PiperOrigin-RevId: 314826912
|
|\ \ \
| | | |
| | | |
| | | | |
PiperOrigin-RevId: 314593695
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
PiperOrigin-RevId: 314427570
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When building packaged shared libraries for use, having the version
set makes it so that the soname is set correctly for parallel installation.
This change is derived from the one used for the Fedora gtest package.
Signed-off-by: Neal Gompa <ngompa13@gmail.com>
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
Modify NULL to nullptr in code examples
PiperOrigin-RevId: 314150792
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix compile error from protected destructor of std::codecvt
PiperOrigin-RevId: 313584603
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Change 'suite' to 'case' in comments.
PiperOrigin-RevId: 313429487
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
PiperOrigin-RevId: 313386267
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The extra tests check that the xml output is correct when a failure occurs before skipping, and that the right skip message is added to the file.
The json file had to be fixed because it's the same executable.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
PiperOrigin-RevId: 313289519
|