summaryrefslogtreecommitdiffstats
path: root/googletest
Commit message (Collapse)AuthorAgeFilesLines
* Googletest exportAbseil Team2020-08-124-0/+8
| | | | | | internal change PiperOrigin-RevId: 325799949
* Merge pull request #2972 from srz-zumix:fix/remove_legacy_testcase_api_Derek Mauro2020-08-075-25/+37
|\ | | | | | | PiperOrigin-RevId: 325220934
| * fix endif commentrefs/pull/2972/headsrz_zumix2020-08-051-1/+1
| |
| * fix testssrz_zumix2020-08-024-12/+24
| |
| * fix GTEST_REMOVE_LEGACY_TEST_CASEAPI_ typorefs/pull/2960/headsrz_zumix2020-07-281-8/+8
| |
* | Merge pull request #2952 from jasjuang:masterMark Barolak2020-07-311-1/+1
|\ \ | | | | | | | | | PiperOrigin-RevId: 324016198
| * | fix clang tidy modernize-use-equals-default warningsrefs/pull/2952/headjasjuang2020-07-191-1/+1
| |/
* | Merge pull request #2920 from ongjunjie:fix-death-test-regexMark Barolak2020-07-311-0/+4
|\ \ | | | | | | | | | PiperOrigin-RevId: 324014547
| * | Fix test failing when simple regex is usedrefs/pull/2920/headJun Jie2020-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | Test MatcherDeathTest.DoesNotBreakBareRegexMatching fails when googletest uses simple regex instead of posix regex. This partially fixes #2687
* | | Googletest exportAbseil Team2020-07-291-9/+5
| |/ |/| | | | | | | | | 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
* | Merge pull request #2937 from Ashikpaul:patch-1vslashg2020-07-151-5/+5
|\ \ | | | | | | | | | PiperOrigin-RevId: 321178217
| * | Fixed some minor typosrefs/pull/2937/headAshik Paul2020-07-111-5/+5
| | |
* | | Merge pull request #2903 from AmatanHead:informative-exception-assertsvslashg2020-07-152-41/+123
|\ \ \ | |/ / |/| | | | | PiperOrigin-RevId: 320425648
| * | Make EXPECT_THROW and EXPECT_NO_THROW macros more informativeVladimir Goncharov2020-06-202-14/+76
| | | | | | | | | | | | | | | | | | EXPECT_THROW and EXPECT_NO_THROW will now print exception type and message when an unexpected std::exception-derived error is thrown. Fixes #2878
* | | Googletest exportAbseil Team2020-07-091-2/+2
| | | | | | | | | | | | | | | | | | Adding std:: namespace to string in the example PiperOrigin-RevId: 320327910
* | | Merge pull request #2872 from elindsey:masterGennadiy Rozental2020-07-091-3/+4
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 320224740
| * | | fix compilation on OpenBSD 6.7refs/pull/2872/headEli Lindsey2020-05-301-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | use target_compile_features to use c++11 if cmake > 3.8refs/pull/2808/headOlivier Ldff2020-07-021-0/+4
| |_|/ |/| | | | | | | | | | | 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.
* | | Googletest exportAbseil Team2020-06-261-16/+17
| | | | | | | | | | | | | | | | | | Add Bazel build rules for gtest_list_output_unittest.py and correct some off-by-one line number expectations. PiperOrigin-RevId: 318466071
* | | Googletest exportAbseil Team2020-06-261-0/+5
| | | | | | | | | | | | | | | | | | Make sure sanitizers do not tamper with the stack here in StackLowerThanAddress(). PiperOrigin-RevId: 318082465
* | | Merge pull request #2718 from NINI1988:masterMark Barolak2020-06-265-12/+194
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 317696457
| * | | Add missing call for gtest_list_output_unittest_ unitTest.refs/pull/2718/headNINI19882020-02-215-12/+189
| | | | | | | | | | | | | | | | | | | | Add unitTest for fixed TEST_P line number. Use CodeLocation TestInfo struct.
| * | | Fix: shadow memberNINI19882020-02-181-2/+2
| | | |
| * | | Add correct line number to TEST_P test cases for gtest_output.NINI19882020-02-182-6/+8
| | | |
* | | | Merge pull request #2891 from zoddicus:fixMinGWMark Barolak2020-06-261-3/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | PiperOrigin-RevId: 317666280
| * | | Fix build issue for MinGWrefs/pull/2891/headRyan Harrison2020-06-101-1/+1
| | | | | | | | | | | | | | | | Fixes #2885
* | | | Googletest exportAbseil Team2020-06-182-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gtest.cc: fix a couple typos s/paramaterized/parameterized/ PiperOrigin-RevId: 316878900
* | | | Googletest exportdmauro2020-06-122-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | Adds support for printing pointers of types char8_t, char16_t, and char32_t. PiperOrigin-RevId: 316112767
* | | | Googletest exportAbseil Team2020-06-101-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | Change string matchers, like HasSubstr, to accept `string_view` input if available. PiperOrigin-RevId: 315726484
* | | | Googletest exportAbseil Team2020-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Googletest exportAbseil Team2020-06-102-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Googletest exportdmauro2020-06-101-1/+2
|/ / / | | | | | | | | | | | | | | | Add missing static_cast to char32_t printer PiperOrigin-RevId: 314925583
* | | Googletest exportdmauro2020-06-053-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #2742 from kuzkry:c++17-type-printersGennadiy Rozental2020-06-054-39/+208
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 314593695
| * | | make UniversalPrinter<std::any> support RTTIrefs/pull/2742/headKrystian Kuzniarek2020-05-293-23/+46
| | | |
| * | | specialize UniversalPrinter<> for std::any (without support for RTTI)Krystian Kuzniarek2020-05-293-0/+71
| | | |
| * | | specialize UniversalPrinter<> for std::optionalKrystian Kuzniarek2020-05-293-13/+42
| | | |
| * | | specialize UniversalPrinter<> for std::variantKrystian Kuzniarek2020-05-293-12/+55
| | | |
* | | | Merge pull request #2755 from Conan-Kudo:set-version-for-libsGennadiy Rozental2020-06-031-0/+2
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 314427570
| * | | | Set the version for the librariesrefs/pull/2755/headNeal Gompa2020-03-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | Googletest exportAbseil Team2020-06-031-3/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | Modify NULL to nullptr in code examples PiperOrigin-RevId: 314150792
* | | | Googletest exportdmauro2020-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix compile error from protected destructor of std::codecvt PiperOrigin-RevId: 313584603
* | | | Googletest exportAbseil Team2020-05-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Change 'suite' to 'case' in comments. PiperOrigin-RevId: 313429487
* | | | Merge pull request #2767 from mvoorsluys:OutputXmlSkippedDerek Mauro2020-05-286-36/+109
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 313386267
| * | | | Fix test with stack.refs/pull/2767/headMario Voorsluys2020-04-221-3/+3
| | | | |
| * | | | Fixed xml unit-tests and added extra testsMario Voorsluys2020-03-265-30/+76
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Fix multiple \n characters in xml file when using GTEST_SKIP.Mario Voorsluys2020-03-261-2/+4
| | | | |
| * | | | Only write ">\n" once when there is failure and skipped tests.Mario Voorsluys2020-03-261-2/+2
| | | | |
| * | | | Output skipped information in the xml file.Mario Voorsluys2020-03-261-3/+22
| | | | |
* | | | | Merge pull request #2862 from prehistoric-penguin:prehistoric-penguin-patch-1Derek Mauro2020-05-281-11/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 313289519