summaryrefslogtreecommitdiffstats
path: root/googletest
Commit message (Collapse)AuthorAgeFilesLines
* Add an explicit #error that C++ versions less than C++14 are not supportedDerek Mauro2023-01-121-0/+13
| | | | | PiperOrigin-RevId: 501568410 Change-Id: I0f78cd96dc9204c8ec97a1cdd09a9d63a613cc5b
* Fix GTEST_OS_ESP8266 checkTom Hughes2023-01-051-1/+1
| | | | | | | | Everywhere else in the code, we check the value of GTEST_OS_ESP8266, not just whether it is defined. PiperOrigin-RevId: 499946909 Change-Id: I86f7e8947abb4e928fc24d1416d8237987b27845
* IWYU: Add missing std includesTom Hughes2023-01-0520-0/+36
| | | | | PiperOrigin-RevId: 499893032 Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
* Workaround for GCC12 bug illustrated by https://godbolt.org/z/Pe5aE59xGDerek Mauro2023-01-041-1/+2
| | | | | | | Fixes #4108 PiperOrigin-RevId: 499556061 Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
* Fix _MSC_VER checkTom Hughes2023-01-041-1/+1
| | | | | | | Use "#if defined(_MSC_VER)" instead of "#if _MSC_VER" to be consistent with other usages in the file and to work with the "-Wundef" warning. PiperOrigin-RevId: 499471290 Change-Id: I34a9442eecf266afd74d4332cab7d39766df4ed9
* Introduces a new porting flag (GTEST_HAS_FILE_SYSTEM) to indicate whether a ↵Abseil Team2022-12-125-40/+115
| | | | | | | platform supports filesystem operations. PiperOrigin-RevId: 494751986 Change-Id: I07f73bdf478a73934b8f1a69c1ab4abda1b231ae
* Fall back to the system clock when building with newlib on a system without ↵Tom Hughes2022-12-081-3/+10
| | | | | | | a monotonic clock. PiperOrigin-RevId: 493917905 Change-Id: I20137cfcda3671ffc8edcda2b6554aa392e3a00a
* Remove the unused class TestNameIsDerek Mauro2022-12-061-31/+0
| | | | | | | Fixes #4076 PiperOrigin-RevId: 493158910 Change-Id: Id66c0443a6f5f4d167ae39ac79766b32cf95a383
* When printing floating-point numbers, print full precision by default.Abseil Team2022-11-162-1/+84
| | | | | | | | | | | To make debug output readable, we still use the faster 6-digit precision sometimes, but only if it will round-trip. This way, when a test fails due to a very small difference in floating-point numbers, users will have enough digits to see the difference. PiperOrigin-RevId: 488958311 Change-Id: Ibcac43f48a97006d89217530c69386cc4fa2735c
* Remove incorrect usage of GTEST_ATTRIBUTE_UNUSED_ on classes.Abseil Team2022-11-154-15/+7
| | | | | | Fixes: #4054 PiperOrigin-RevId: 488721587 Change-Id: I8742d8475376635c83edcf524796a6107042e89b
* Merge pull request #4058 from zloylos:support-kitty-termCopybara-Service2022-11-143-9/+14
|\ | | | | | | | | PiperOrigin-RevId: 488463135 Change-Id: I4180d766dabbe438210904e743e6e963122540f5
| * Support kitty TERMrefs/pull/4058/headDenis Hananein2022-11-103-0/+5
| | | | | | | | Signed-off-by: Denis Hananein <i@zloylos.me>
* | Merge pull request #4060 from RerEngineer:mainCopybara-Service2022-11-141-3/+3
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 488456139 Change-Id: I648f3d2c6affadfea27214a6a22cacc576971cef
| * | fixing gcc.gnu domain redirectionRerEngineer2022-11-121-1/+1
|/ /
* | Defined a testing::SrcDir() function that returns the name of a directoryAbseil Team2022-11-113-11/+140
| | | | | | | | | | | | | | where ancillary data files can be found. PiperOrigin-RevId: 487896836 Change-Id: Ie6b1ba734e900fa33872b63090879ee6efe33411
* | Merge pull request #4039 from zloylos:fix-return-fail-at-4038Copybara-Service2022-11-101-3/+3
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 487516335 Change-Id: Ib475750586fc7e6ab01729f65253e3a86916b994
| * | Add return for GTEST_FAIL_ATrefs/pull/4039/headDenis Hananein2022-10-151-2/+2
| | |
* | | RecordProperty serializes ints and 64-bit ints, including size_tsAbseil Team2022-11-073-8/+9
| | | | | | | | | | | | | | | PiperOrigin-RevId: 486685761 Change-Id: I164d2646e65670d341dbf437ee571953c456677a
* | | Fix typo in documentation of ConvertGenerator()Abseil Team2022-11-051-1/+1
| |/ |/| | | | | | | PiperOrigin-RevId: 486316328 Change-Id: I91d5d5ba1aaf4a4ab14019c8963e7fe181722f95
* | Merge pull request #4036 from zloylos:fix-output-json-3884Copybara-Service2022-10-191-0/+3
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 482287697 Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
| * | Fix JSON output format #3884refs/pull/4036/headDenis Hananein2022-10-111-0/+3
| | |
* | | CMake: Add GTEST_HAS_ABSL build option for using AbslAbseil Team2022-10-191-0/+16
| | | | | | | | | | | | | | | PiperOrigin-RevId: 482101793 Change-Id: I1bd140fd6a325f573c8a0c464e4dccd4acd0d0a3
* | | Adds Win32 UNC path support to FilePath::IsAbsolutePath() and ↵Abseil Team2022-10-183-18/+85
| | | | | | | | | | | | | | | | | | | | | | | | FilePath::IsRootDirectory() in GoogleTest Fixes: #3025 PiperOrigin-RevId: 481932601 Change-Id: I90fcb5b3d189aea79a0fd18735bad038b3511270
* | | Fix detection of the no_sanitize("hwaddress") attributeDerek Mauro2022-10-171-1/+12
| |/ |/| | | | | | | PiperOrigin-RevId: 481765573 Change-Id: I1ba829c3cbf364a51d3ba383ee3b474c0e109578
* | Use attribute testing to simplify portable attribute macrosDerek Mauro2022-10-141-48/+37
| | | | | | | | | | | | | | Fixes #4025 PiperOrigin-RevId: 481186097 Change-Id: Id7d09e4626e5ccf564e8cfaa65581c1cd827918d
* | Terse printing of std::reference_wrapper hides pointerAbseil Team2022-10-142-0/+30
|/ | | | | | | This matches the intention and documentation of terse printing which generally avoids printing the pointer. PiperOrigin-RevId: 481178950 Change-Id: I27039dac1870934d2d5b212e2cc7e97ab82c5b34
* Suggests a release with fixed CMakeLists.txtrefs/pull/4032/headFerenc Géczi2022-10-091-1/+1
| | | | Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
* [fuchsia] Use __builtin_trap to trigger gunit_break_on_failure on non-x86 archAbseil Team2022-10-061-0/+12
| | | | | | | In developing tests for the fuchsia debugger, it was found that in addition to catching gtest failures (which are implemented as software breakpoints) we also see PageFault exceptions, caused by this nullptr dereference. PiperOrigin-RevId: 479365782 Change-Id: I84d805d94c2e46b6f3c982ca1ae49c6ac3ed3430
* Makes Clang compilations via Ninja on Windows define _DLL only for shared ↵Abseil Team2022-10-051-2/+7
| | | | | | | CRT builds, as one would already expect from MSVC builds. (Previously, static Clang/Ninja builds on Windows also implicitly defined _DLL, which was problematic.) PiperOrigin-RevId: 479113168 Change-Id: I252d9be90fd33df75dab922e62b197208830d124
* Merge pull request #3967 from BMBurstein:custom_type_combineCopybara-Service2022-10-044-10/+182
|\ | | | | | | | | PiperOrigin-RevId: 478775323 Change-Id: I92231bb8edd8e01b9b7cbe445c43dcf84f458521
| * Merge branch 'google:main' into custom_type_combineBaruch2022-09-285-14/+39
| |\
| * \ Merge branch 'google:main' into custom_type_combineBaruch2022-09-142-7/+4
| |\ \
| * \ \ Merge branch 'google:main' into custom_type_combineBaruch2022-08-255-8/+8
| |\ \ \
| * | | | Custom type with Combine(). Fix for #3781Baruch Burstein2022-07-314-10/+179
| | | | |
* | | | | Uses a simpler mechanism to disable the copying of GoogleTest test suites, ↵Abseil Team2022-09-302-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to move code out of the TEST_P macro. PiperOrigin-RevId: 478031678 Change-Id: I45f0ce17a4add526c86b8212d836d98d63b3a193
* | | | | Rollback: Moves boilerplate disabling copy constructor/assignment from ↵Abseil Team2022-09-282-16/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GoogleTest's TEST_P macro into a header file to avoid triggering warnings in user code. PiperOrigin-RevId: 477566426 Change-Id: Ia417e295d839f43be6e61a5699457866108f2a01
* | | | | Rollback: Uses a simpler mechanism to disable the copying of GoogleTest test ↵Abseil Team2022-09-282-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suites. PiperOrigin-RevId: 477560280 Change-Id: I1c1f5a1d6645859ec38cb1a75cd267816d2aff35
* | | | | Uses a simpler mechanism to disable the copying of GoogleTest test suites.Abseil Team2022-09-282-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 477549427 Change-Id: I6421ca09f0f1296cebdc3e54565049f1542dfa8a
* | | | | Moves boilerplate disabling copy constructor/assignment from GoogleTest's ↵Abseil Team2022-09-282-6/+16
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TEST_P macro into a header file to avoid triggering warnings in user code. Fixes #4015 PiperOrigin-RevId: 477513399 Change-Id: Ia21928ee12e85946b4c8db86835d225cb257eecc
* | | | Merge pull request #4016 from Maratyszcza:qurtCopybara-Service2022-09-274-13/+37
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 477265396 Change-Id: I781dae4ef2c5b6c771d960f1ec5a3c5cff0e97ad
| * | | | Port GoogleTest to QuRT (Hexagon RTOS)refs/pull/4016/headMarat Dukhan2022-09-264-10/+33
| | |_|/ | |/| |
* | | | Add GoogleTest workaround for MSVC crash with Address Sanitizer (ASAN) on ↵Abseil Team2022-09-271-1/+2
|/ / / | | | | | | | | | | | | | | | | | | version 17.3.3 PiperOrigin-RevId: 477240422 Change-Id: I894037850617252e462783c0885e30fc8e7ad122
* | | Merge pull request #3916 from asmodai27:mainCopybara-Service2022-08-301-1/+1
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 471062949 Change-Id: I3f063c441b3d4275d931016c431519c14e68d51c
| * | | Avoid implicit conversion from int to charrefs/pull/3916/headJérôme Travert2022-06-261-1/+1
| | | |
* | | | Consider all TERM values ending in "-256color" to be color supporting. In ↵Abseil Team2022-08-261-6/+3
| |_|/ |/| | | | | | | | | | | | | | | | | particular this handles TERM=hterm-256color correctly. PiperOrigin-RevId: 470232889 Change-Id: Iea594a3fde2b8b0a10e527956d70ba0bb3452e08
* | | gtest_unittest: Call FAIL() in lambda, fix incorrect fatality expectationDino Radakovic2022-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL() evaluates into a return statement: https://github.com/google/googletest/blob/5b909beeec178f338be997830b6c31a80cda7a93/googletest/include/gtest/internal/gtest-internal.h#L1347 Calling it from the body of the test case turns all subsequent expectations into no-ops. Fixes #3941 PiperOrigin-RevId: 466104977 Change-Id: Ic15f43acb734295a5c9690a2b5eec6f65e8c0814
* | | Explicitly instantiate matchee std::string in MatchesRegexDino Radakovic2022-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | If this ever turns out to be a performance issue, we could use std::conditional and std::is_same to avoid copying std::strings. Fixes #3949 PiperOrigin-RevId: 465353572 Change-Id: If2d691bccb626c692c87e006df5afe88a4ed1542
* | | Merge pull request #3918 from assafpr:master2mainCopybara-Service2022-08-013-4/+4
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 464586117 Change-Id: Icda62f13b962f7408bb5698ae2b627391257d152
| * | | Update gtest.ccassafpr2022-06-271-1/+1
| | | | | | | | | | | | fix a broken link
| * | | Update gtest-death-test.ccassafpr2022-06-271-1/+1
| | | |