Abseil Team
4408a0288b
Remove incorrect usage of GTEST_ATTRIBUTE_UNUSED_ on classes.
...
Fixes : #4054
PiperOrigin-RevId: 488721587
Change-Id: I8742d8475376635c83edcf524796a6107042e89b
2022-11-15 12:01:35 -08:00
Copybara-Service
0e6aac2571
Merge pull request #4058 from zloylos:support-kitty-term
...
PiperOrigin-RevId: 488463135
Change-Id: I4180d766dabbe438210904e743e6e963122540f5
2022-11-14 14:06:58 -08:00
Copybara-Service
42c6f57f3c
Merge pull request #4060 from RerEngineer:main
...
PiperOrigin-RevId: 488456139
Change-Id: I648f3d2c6affadfea27214a6a22cacc576971cef
2022-11-14 13:40:08 -08:00
RerEngineer
9c990a7b1e
fixing gcc.gnu domain redirection
2022-11-12 15:12:00 +00:00
Abseil Team
912db74253
Defined a testing::SrcDir() function that returns the name of a directory
...
where ancillary data files can be found.
PiperOrigin-RevId: 487896836
Change-Id: Ie6b1ba734e900fa33872b63090879ee6efe33411
2022-11-11 12:59:10 -08:00
Denis Hananein
4b7f9453c5
Support kitty TERM
...
Signed-off-by: Denis Hananein <i@zloylos.me>
2022-11-10 17:08:48 +01:00
Copybara-Service
44c03643cf
Merge pull request #4039 from zloylos:fix-return-fail-at-4038
...
PiperOrigin-RevId: 487516335
Change-Id: Ib475750586fc7e6ab01729f65253e3a86916b994
2022-11-10 06:13:31 -08:00
Abseil Team
386c7665f5
RecordProperty serializes ints and 64-bit ints, including size_ts
...
PiperOrigin-RevId: 486685761
Change-Id: I164d2646e65670d341dbf437ee571953c456677a
2022-11-07 09:36:56 -08:00
Abseil Team
a4f02ef389
Fix typo in documentation of ConvertGenerator()
...
PiperOrigin-RevId: 486316328
Change-Id: I91d5d5ba1aaf4a4ab14019c8963e7fe181722f95
2022-11-05 01:07:38 -07:00
Copybara-Service
e07617d6c6
Merge pull request #4036 from zloylos:fix-output-json-3884
...
PiperOrigin-RevId: 482287697
Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
2022-10-19 13:25:11 -07:00
Abseil Team
6bad847991
CMake: Add GTEST_HAS_ABSL build option for using Absl
...
PiperOrigin-RevId: 482101793
Change-Id: I1bd140fd6a325f573c8a0c464e4dccd4acd0d0a3
2022-10-18 21:40:24 -07:00
Abseil Team
f372c76026
Adds Win32 UNC path support to FilePath::IsAbsolutePath() and FilePath::IsRootDirectory() in GoogleTest
...
Fixes : #3025
PiperOrigin-RevId: 481932601
Change-Id: I90fcb5b3d189aea79a0fd18735bad038b3511270
2022-10-18 08:52:33 -07:00
Derek Mauro
26d3ab5442
Fix detection of the no_sanitize("hwaddress") attribute
...
PiperOrigin-RevId: 481765573
Change-Id: I1ba829c3cbf364a51d3ba383ee3b474c0e109578
2022-10-17 16:15:59 -07:00
Denis Hananein
6f149520a1
Add return for GTEST_FAIL_AT
2022-10-16 01:57:22 +02:00
Derek Mauro
a9b2f0495c
Use attribute testing to simplify portable attribute macros
...
Fixes #4025
PiperOrigin-RevId: 481186097
Change-Id: Id7d09e4626e5ccf564e8cfaa65581c1cd827918d
2022-10-14 11:00:40 -07:00
Abseil Team
137b6e2770
Terse printing of std::reference_wrapper hides pointer
...
This matches the intention and documentation of terse printing which generally avoids printing the pointer.
PiperOrigin-RevId: 481178950
Change-Id: I27039dac1870934d2d5b212e2cc7e97ab82c5b34
2022-10-14 10:32:49 -07:00
Denis Hananein
1d505b8e40
Fix JSON output format #3884
2022-10-11 12:11:46 +02:00
Ferenc Géczi
671cfb7dbf
Suggests a release with fixed CMakeLists.txt
...
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2022-10-09 16:47:19 +00:00
Abseil Team
67e264834a
[fuchsia] Use __builtin_trap to trigger gunit_break_on_failure on non-x86 arch
...
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
2022-10-06 11:22:36 -07:00
Abseil Team
08935483cb
Makes Clang compilations via Ninja on Windows define _DLL only for shared 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
2022-10-05 12:27:31 -07:00
Copybara-Service
8c4dc11539
Merge pull request #3967 from BMBurstein:custom_type_combine
...
PiperOrigin-RevId: 478775323
Change-Id: I92231bb8edd8e01b9b7cbe445c43dcf84f458521
2022-10-04 07:06:58 -07:00
Abseil Team
93f08be653
Uses a simpler mechanism to disable the copying of GoogleTest test suites, to move code out of the TEST_P macro.
...
PiperOrigin-RevId: 478031678
Change-Id: I45f0ce17a4add526c86b8212d836d98d63b3a193
2022-09-30 10:55:15 -07:00
Abseil Team
d1a0039b97
Rollback: Moves boilerplate disabling copy constructor/assignment from GoogleTest's TEST_P macro into a header file to avoid triggering warnings in user code.
...
PiperOrigin-RevId: 477566426
Change-Id: Ia417e295d839f43be6e61a5699457866108f2a01
2022-09-28 15:24:50 -07:00
Abseil Team
19387c9dd5
Rollback: Uses a simpler mechanism to disable the copying of GoogleTest test suites.
...
PiperOrigin-RevId: 477560280
Change-Id: I1c1f5a1d6645859ec38cb1a75cd267816d2aff35
2022-09-28 14:59:04 -07:00
Abseil Team
c43b916a96
Uses a simpler mechanism to disable the copying of GoogleTest test suites.
...
PiperOrigin-RevId: 477549427
Change-Id: I6421ca09f0f1296cebdc3e54565049f1542dfa8a
2022-09-28 14:14:58 -07:00
Abseil Team
4924e0610a
Moves boilerplate disabling copy constructor/assignment from GoogleTest's TEST_P macro into a header file to avoid triggering warnings in user code.
...
Fixes #4015
PiperOrigin-RevId: 477513399
Change-Id: Ia21928ee12e85946b4c8db86835d225cb257eecc
2022-09-28 11:55:57 -07:00
Baruch
24683e2d6a
Merge branch 'google:main' into custom_type_combine
2022-09-28 11:32:21 +03:00
Copybara-Service
e23cdb78e9
Merge pull request #4016 from Maratyszcza:qurt
...
PiperOrigin-RevId: 477265396
Change-Id: I781dae4ef2c5b6c771d960f1ec5a3c5cff0e97ad
2022-09-27 13:49:56 -07:00
Abseil Team
dfa6735236
Add GoogleTest workaround for MSVC crash with Address Sanitizer (ASAN) on version 17.3.3
...
PiperOrigin-RevId: 477240422
Change-Id: I894037850617252e462783c0885e30fc8e7ad122
2022-09-27 12:09:46 -07:00
Marat Dukhan
7a3abfec0a
Port GoogleTest to QuRT (Hexagon RTOS)
2022-09-26 14:49:00 -07:00
Baruch
56070d8903
Merge branch 'google:main' into custom_type_combine
2022-09-14 21:46:21 +03:00
Copybara-Service
9080381758
Merge pull request #3916 from asmodai27:main
...
PiperOrigin-RevId: 471062949
Change-Id: I3f063c441b3d4275d931016c431519c14e68d51c
2022-08-30 12:40:01 -07:00
Abseil Team
afd902e992
Consider all TERM values ending in "-256color" to be color supporting. In particular this handles TERM=hterm-256color correctly.
...
PiperOrigin-RevId: 470232889
Change-Id: Iea594a3fde2b8b0a10e527956d70ba0bb3452e08
2022-08-26 06:35:30 -07:00
Baruch
dd969ed5fe
Merge branch 'google:main' into custom_type_combine
2022-08-25 10:55:49 +03:00
Dino Radakovic
4c9a3bb62b
gtest_unittest: Call FAIL() in lambda, fix incorrect fatality expectation
...
FAIL() evaluates into a return statement: 5b909beeec/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
2022-08-08 11:48:12 -07:00
Dino Radakovic
5b909beeec
Explicitly instantiate matchee std::string in MatchesRegex
...
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
2022-08-04 10:53:57 -07:00
Copybara-Service
6045bf2ade
Merge pull request #3918 from assafpr:master2main
...
PiperOrigin-RevId: 464586117
Change-Id: Icda62f13b962f7408bb5698ae2b627391257d152
2022-08-01 11:47:51 -07:00
Copybara-Service
fa3f444be1
Merge pull request #3951 from matdibu:main
...
PiperOrigin-RevId: 464546862
Change-Id: I6ee696f4f66a5f76015a36737b5cde5edc91a9bc
2022-08-01 08:59:08 -07:00
Baruch Burstein
3280a930bf
Custom type with Combine(). Fix for #3781
2022-07-31 22:50:04 +03:00
Yuriy Chernyshov
aa2e91fd69
Continuation for #3183
...
Some of the #ifdefs were missed in original PR.
Should be fixed now.
2022-07-21 14:25:43 +03:00
Matei Dibu
61720589cb
gtest-death-test: add 'noreturn'
2022-07-20 19:16:51 +03:00
Copybara-Service
7735334a46
Merge pull request #3940 from anpol:pdb-static-lib
...
PiperOrigin-RevId: 461703446
Change-Id: I61773eafa6d6bf6294218a5117fdebf5dd8a7bb1
2022-07-18 13:45:12 -07:00
Copybara-Service
43a6712a0c
Merge pull request #3946 from anpol:export-tlvhbase
...
PiperOrigin-RevId: 461701938
Change-Id: I92601aeef9f0bb18a6d1c8b08e497d93dde4012a
2022-07-18 13:39:19 -07:00
Copybara-Service
71feea653b
Merge pull request #3939 from anpol:python-find-strategy
...
PiperOrigin-RevId: 461699564
Change-Id: Id7043073f106f57433a99fea0e8e4ab015bf896d
2022-07-18 13:30:20 -07:00
Copybara-Service
91480a4e79
Merge pull request #3927 from yutotnh:fix-typo
...
PiperOrigin-RevId: 461699509
Change-Id: I9bab4474c5f52d4d66691dfb96a4d20f89fbcfeb
2022-07-18 13:29:19 -07:00
Andrei Polushin
3655149a60
export ThreadLocalValueHolderBase which is required by exported APIs.
...
fixes #3944
2022-07-14 21:36:41 +07:00
Andrei Polushin
a2d6ee847e
cmake: make PDB output directory match that of a static library.
...
PDB files should be created at the same location as their primary
artifact, which is either static library or a DLL.
On Windows, an artifact location is controlled by:
* RUNTIME_OUTPUT_DIRECTORY is a directory of a DLL artifact.
* ARCHIVE_OUTPUT_DIRECTORY is a directory of a LIB artifact.
A PDB file location is controlled:
* PDB_OUTPUT_DIRECTORY should match a directory of a DLL artifact.
* COMPILE_PDB_OUTPUT_DIRECTORY should match a directory of a LIB artifact.
2022-07-13 02:13:34 +07:00
Andrei Polushin
96ddde1235
cmake: find python in order specified by PATH environment variable.
...
CMake policy CMP0094 controls a lookup strategy used to find a Python
executable:
* CMP0094=OLD selects a Python executable with a higher version.
* CMP0094=NEW selects a Python executable found earlier in PATH.
NEW behavior is critical in presence of a Python virtual environment
established and activated, i.e. added to the PATH variable.
In case GoogleTest is embedded into a larger project, the result of
`find_package(Python)` affects the whole build, not only GoogleTest
component itself.
2022-07-13 02:12:53 +07:00
Copybara-Service
bea621c3c3
Merge pull request #3928 from venik:venik-clean-up
...
PiperOrigin-RevId: 460455562
Change-Id: I29efc09887651d8734586703fe0691482ba4c981
2022-07-12 07:19:18 -07:00
Copybara-Service
2e1346de56
Merge pull request #3868 from eidosmontreal:fix_undefined_symbol_kMaxRange
...
PiperOrigin-RevId: 460222898
Change-Id: I652b8058aa98b56d849c5ab1399f75e531dcc959
2022-07-11 08:49:28 -07:00