summaryrefslogtreecommitdiffstats
path: root/googletest
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4308 from smr99:fix-float-castCopybara-Service2023-07-111-2/+2
|\ | | | | | | | | PiperOrigin-RevId: 547250378 Change-Id: I084c30e45f331cb296535822923da1cb7e848e11
| * Use template type FloatType in the cast.refs/pull/4308/headSteve Robbins2023-07-041-2/+2
| |
* | Update docstring of PrintWithFallback(..) to reflect the recently changed ↵Abseil Team2023-07-071-1/+1
|/ | | | | | | ordering. PiperOrigin-RevId: 546373360 Change-Id: I2538b45d8c7710592071cc352da6771480c324e6
* Fix C++20 compatibility bug.Mike Kruskal2023-07-013-8/+8
| | | | | | | | | This was shown to work for C++14, C++17, and C++20 after patched into googletest for the protobuf repo's CI. Closes #3659 PiperOrigin-RevId: 544795507 Change-Id: I3e0a94f675e78a6ee9aeccae86c23d940efed8eb
* Make GoogleTest handle SEH exceptions before stack unwinding rather than ↵Abseil Team2023-06-302-46/+27
| | | | | | | | | | | afterward This ensure the erroring stack frame is visible and accessible when the handler is invoked. Fixes #4298 PiperOrigin-RevId: 544692549 Change-Id: Ia165a8c293e8edc820da5f5ad4416546fffe2493
* Print stack traces on SEH exceptions on WindowsAbseil Team2023-06-281-18/+21
| | | | | | | | | | | | Also tidies up a couple of things: - Prevent handling of stack overflows, which cannot be done safely - `exception_code` is a macro, so we rename it - The `std::string` heap allocation was unnecessary Fixes #4298 PiperOrigin-RevId: 544117790 Change-Id: I8ba61f87119d5fbdb1f653700d9867ca6f8c28ce
* On platforms without a file system, don't log an error when noDerek Mauro2023-06-281-2/+4
| | | | | | | | | alternative output format is requested. Fixes #4299 PiperOrigin-RevId: 543932266 Change-Id: Ide78c313ecf6829e4910f4a8407275c81edb3848
* Resolve an issue where the resolution of `operator<<` overloads would ↵Abseil Team2023-06-272-2/+20
| | | | | | | attempt to instantiate the incomplete `testing::internal::Secret` type. PiperOrigin-RevId: 543799815 Change-Id: Ic0a4f48d825bef26cb8cc74d8a0117b3a5ef3f14
* Merge pull request #4300 from eltociear:patch-1Copybara-Service2023-06-271-2/+2
|\ | | | | | | | | PiperOrigin-RevId: 543586460 Change-Id: I87ee05c4b77fb643a3381018568a4765d0a12b18
| * Fix typo in googletest-catch-exceptions-test.pyrefs/pull/4300/headIkko Eltociear Ashimine2023-06-221-2/+2
| | | | | | FITLER_OUT_SEH_TESTS_FLAG -> FILTER_OUT_SEH_TESTS_FLAG
* | Merge branch 'google:main' into feat/qn9090refs/pull/4301/headChris Johnson2023-06-2210-98/+70
|\ \ | |/
| * Merge pull request #4293 from juan-lunarg:juan/fix_remaining_cmake_versionCopybara-Service2023-06-212-63/+28
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 542299863 Change-Id: I51cf4a4f8d6a97e39e6c46f48fa6acf3bd0ab6b5
| | * cmake: Remove remaining checks for CMAKE_VERSIONrefs/pull/4293/headJuan Ramos2023-06-212-61/+26
| |/ | | | | | | Remove conditional code that doesn't need to exist anymore.
| * cmake: Clean up policy coderefs/pull/4290/headJuan Ramos2023-06-202-18/+0
| | | | | | | | | | | | | | | | | | | | Now that the min is 3.13 these policies don't need to be set manually anymore. CMP0054 - 3.1 CMP0063 - 3.3 CMP0069 - 3.9 CMP0077 - 3.13
| * Merge pull request #4288 from juan-lunarg:juan/cmake_min_3_dot_6Copybara-Service2023-06-201-2/+1
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 541929012 Change-Id: I90423820611c2b6a6f81fe3f9ec2d23992ffbed1
| | * cmake: Raise min to 3.6refs/pull/4288/headJuan Ramos2023-06-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the CMake 3.27 release notes: Compatibility with versions of CMake older than 3.5 is now deprecated and will be removed from a future version. Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue a deprecation diagnostic. This PR also removes manually setting policy CMP0048. This is redundant since the CMake min is already 3.X
| * | Change C++11 requirement to C++14refs/pull/4286/headRyan Schmidt2023-06-191-3/+3
| |/ | | | | | | | | Version 1.13.x and later require C++14. Also fix missing closing backtick.
| * Allow clients to un-suppress output from gUnit EXPECT_EXIT tests.Abseil Team2023-06-154-6/+9
| | | | | | | | | | | | | | | | This is useful for running individual tests in a separate process, which is useful for testing e.g. flag changes which have a process-global effect. PiperOrigin-RevId: 540580573 Change-Id: I18a5d24d79425a9d595be3369efc44e2f655f6f8
| * Skip entire test suite with `GTEST_SKIP()` in `SetUpTestSuite`Dino Radakovic2023-06-143-4/+21
| | | | | | | | | | | | | | Fixes #4273 PiperOrigin-RevId: 540254167 Change-Id: I2555740d10284223539035bf73f88554fcf73f8a
| * Merge pull request #4188 from Mizzrym1:componentCopybara-Service2023-06-122-0/+6
| |\ | | | | | | | | | | | | PiperOrigin-RevId: 539684886 Change-Id: Ie7f4175ad413fdb82d265374a4aca9fad23571f5
| | * Add COMPONENT to installrefs/pull/4188/headMaciej Sroczyński2023-03-142-0/+6
| | |
| * | Check for file system for current directoryrefs/pull/4269/headJoakim Plate2023-06-021-2/+2
| | | | | | | | | | | | | | | Check for current directory instead of death test to get original directory. A port may support filesystems but not death tests.
* | | add support for nxp qn9090 mcuChris Johnson2023-06-223-3/+6
|/ / | | | | | | | | Added additional defines to correctly detect the NXP QN9090 MCU platform and allow for native googletest compability.
* | Merge pull request #4256 from niranjan-nilakantan:niranjan-nilakantan/issue4255Copybara-Service2023-05-301-2/+12
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 536480185 Change-Id: I9bdd65cd18253703abf3cc92b3f354c1f798aa3e
| * | Disable some warnings for IntelLLVM on Windows.refs/pull/4256/headniranjan2023-05-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use /fp:precise to override IntelLLVM's default of /fp:fast. This makes IsInf and IsNan work as expected by googletest. ``` [build]...\googletest\googlemock\test\gmock-function-mocker_test.cc(143,21): error: 'VoidReturning' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override] [build] MOCK_METHOD(void, VoidReturning, (int n)); // NOLINT ``` ``` [build] ...\googletest\googlemock\test\gmock-function-mocker_test.cc(182,20): error: exception specification of overriding function is more lax than base version [-Werror,-Wmicrosoft-exception-spec] [build] MOCK_METHOD(int, CTNullary, (), (Calltype(STDMETHODCALLTYPE))); ``` ``` [build] ...\googletest\googletest\test\googletest-death-test-test.cc(209,5): error: unused function 'DieInCRTDebugElse12' [-Werror,-Wunused-function] [build] int DieInCRTDebugElse12(int* sideeffect) { [build] ^ ``` ``` [build] ...\googletest\googletest\test\gtest_unittest.cc(4096,7): error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable] [build] int n = 0; ```
| * | Build googletest with IntelLLVM compilers.Niranjan Nilakantan2023-05-241-2/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the same flags as Clang if the compiler id is IntelLLVM. IntelLLVM warns if a double constant is assigned to a float. ``` [build] .../googletest/googletest/include/gtest/gtest-printers.h:516:17: warning: implicit conversion between floating point types of different sizes [-Wimplicit-float-size-conversion] [build] mulfor6 = 1e1; ``` IntelLLVM uses fp-model=fast by default, breaking IsNan and IsInf tests. Use -ffp-model=precise to fix this. IntelLLVM does not support -Wchar-subscripts Fixes #4255
* | Merge pull request #4250 from shlomnissan:cmake-quickstart-updateCopybara-Service2023-05-221-4/+4
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 534150776 Change-Id: Ib6c07c6abd06c259494928102e2cb800b6652612
| * | Add CXX_STANDARD_REQUIRED to CMake quickstartrefs/pull/4250/headShlomi Nissan2023-05-211-4/+4
|/ /
* | Give CreateArgvFromArgs internal linkageAbseil Team2023-05-111-1/+4
| | | | | | | | | | | | | | It isn't declared in any header or referenced from any other file. PiperOrigin-RevId: 531209642 Change-Id: I9e7df37f737b00994f8845ed38c3b775879cb25c
* | This trips up when compiling with -Wvla otherwise.Abseil Team2023-05-051-2/+2
| | | | | | | | | | PiperOrigin-RevId: 529762901 Change-Id: I6ce4d630191bf265f847aef2d5dcc12a712faa60
* | Merge pull request #4146 from lygstate:fixes_std_pair_diffCopybara-Service2023-05-022-5/+31
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 528781910 Change-Id: I4038332a6255921792bfb4a8098aa84243d48e15
| * \ Merge branch 'main' into fixes_std_pair_diffrefs/pull/4146/headAndy Soffer2023-05-0153-748/+856
| |\ \ | |/ / |/| |
* | | Merge pull request #4227 from Vertexwahn:fix-spellingCopybara-Service2023-05-014-4/+4
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 528474013 Change-Id: I60cd509aded8d8b02423ea1b07c2c27e3709a808
| * | | Fix spellingrefs/pull/4227/headVertexwahn2023-04-254-4/+4
| | | |
* | | | Use GTEST_INTERNAL_CPLUSPLUS_LANG instead of __cplusplusDino Radakovic2023-04-281-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some versions of MSVC provide incorrect values for the latter and rely on _MSVC_LANG instead. Fixes #4226. PiperOrigin-RevId: 527919195 Change-Id: Ifcca4612074f5ebc5337094426866a187f79f90a
* | | | Use Abseil Flag public API for flag parsing.Abseil Team2023-04-263-26/+63
|/ / / | | | | | | | | | | | | | | | | | | This change brings InitGoogleTest semantic in accordance with the official documentation: only GoogleTest flags are removed from argc/argv. The rest of the flags remains in place. We do nothing special for flags with unrecognized gunit_/gtest_ prefix and we do not report them. PiperOrigin-RevId: 527257221 Change-Id: Ibb29a1bda1a44251a4ee579c0fb5bbdfd9965c21
* | | Use '=default' to define trivial constructor/destructorsrefs/pull/4221/headTom Hughes2023-04-2114-48/+48
| | | | | | | | | | | | | | | | | | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
* | | Add missing std includesTom Hughes2023-04-2015-0/+37
| | | | | | | | | | | | | | | PiperOrigin-RevId: 525850646 Change-Id: I64387f5b933beb79cd05636dca81b7a75213383e
* | | Use std::make_uniqueTom Hughes2023-04-201-1/+1
| | | | | | | | | | | | | | | PiperOrigin-RevId: 525828947 Change-Id: I66f47c835bc93ba171eba0da8df09eff89c6c77b
* | | Fix spellingTom Hughes2023-04-201-4/+4
| | | | | | | | | | | | | | | PiperOrigin-RevId: 525820426 Change-Id: Ib5baa8da4a54ebb17b6ace12240ed03eedb46091
* | | Add missing std includesTom Hughes2023-04-207-59/+66
| | | | | | | | | | | | | | | PiperOrigin-RevId: 525794940 Change-Id: Ib2639058610c91cbffbb0f22a5e71573e0cbd651
* | | Make parameter names in function declaration match the names in theTom Hughes2023-04-201-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | definitions https://clang.llvm.org/extra/clang-tidy/checks/readability/inconsistent-declaration-parameter-name.html PiperOrigin-RevId: 525752102 Change-Id: Ibf9d3d1dbae8f95cfc7c6ad29fe4b677f4ee19cf
* | | Merge pull request #3993 from pgroke-dt:work-around-GCC-11-ADL-bugCopybara-Service2023-04-121-6/+7
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 523706897 Change-Id: If6dcc97c81a20f8fe675241518ae1d6cf23ebf39
| * | | work around GCC 6~11 ADL bugrefs/pull/3993/headPaul Groke2022-09-151-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51577 ADL seems to work properly when we do the SFINAE check via the return type, but not when using a dummy template parameter fix #3992
* | | | Support --gtest_stream_result_to on macOSAbseil Team2023-04-112-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to just have been an oversight. POSIX socket APIs work just fine on macOS. Fixes https://github.com/google/googletest/issues/4214. PiperOrigin-RevId: 523398386 Change-Id: I9d56cd9c6933318c1f0b0024f7fef44122fd0c83
* | | | gtest.cc: run tests within a test suite in a deterministic order.Abseil Team2023-04-051-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that tests are run in the order specified in the source code, even if they are registered manually using RegisterTest. There should be no behavior change for the common case. PiperOrigin-RevId: 522136303 Change-Id: If155e2666780af0e514fbbf5ff2b157d5fe2fef1
* | | | Rolled back due to breaking existing tests.Abseil Team2023-04-031-20/+0
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 521555658 Change-Id: I09742faceb82b2b7ceb423e850a8b50d532ad6ff
* | | | gtest.cc: run tests within a test suite in a deterministic order.Aaron Jacobs2023-03-301-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that tests are run in the order specified in the source code, even if they are registered manually using RegisterTest. There should be no behavior change for the common case. PiperOrigin-RevId: 520729483 Change-Id: I400c78400c6929fccae0676214d993251f31888f
* | | | Merge pull request #4103 from gonzalobg:bugfix/nvcxx_supportCopybara-Service2023-03-281-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 520017251 Change-Id: Ib2be28787b739344c80a5d937f875737ba44a0ec
| * | | | Add doc commentrefs/pull/4103/headgonzalobg2023-03-231-1/+1
| | | | |