Commit Graph

4120 Commits

Author SHA1 Message Date
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
78aa2ba440 Merge pull request #3787 from codeinred:fix-quickstart
PiperOrigin-RevId: 460272863
Change-Id: I139e31faca4dab6f697e0cd1b3491f791fda5f8a
2022-07-11 12:23:26 -07:00
Derek Mauro
4086e92d86 Add envvar BAZEL_CXXOPTS=-std=c++14 to the GitHub Actions CI
PiperOrigin-RevId: 460242683
Change-Id: I182a2e082d3a7e38fd3686e9e7af200ba0f954e0
2022-07-11 10:17:32 -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
Copybara-Service
8f01400b77 Merge pull request #3844 from akohlmey:intel-llvm-utf8-fix
PiperOrigin-RevId: 460222266
Change-Id: I2fbeac0b333ca16639f172ca1f23794ea9ddc2ad
2022-07-11 08:46:06 -07:00
Derek Mauro
4556086674 CMake: raise the default C++ standard to cxx_std_14
PiperOrigin-RevId: 459761499
Change-Id: Ifb4b8b9f2dc598f3f4afc66a9efc403e001e0262
2022-07-08 08:21:42 -07:00
Chris Kennelly
e009c3d3dc Enable heterogeneous lookup for RegisteredTestsMap.
PiperOrigin-RevId: 459529190
Change-Id: I6b29693000023b3562990742f27a98cc279b6452
2022-07-07 09:18:52 -07:00
Alexander Nikforov
7107c44188 cleanup from unique_ptr branch 2022-07-01 15:33:13 -07:00
Derek Mauro
4219e7254c Remove the Bazel provided default cxxopt -std=c++0x and replace it
with -std=c++14 when testing with GCC 5.

PiperOrigin-RevId: 458502826
Change-Id: I83637a222b5c0a54e55d93ce7fdbc878af27b250
2022-07-01 10:53:54 -07:00
yutotnh
644a4bea02
fix: some typos in source 2022-07-01 18:33:14 +09:00
yutotnh
6c57d607c7
fix: typo in test name 2022-07-01 18:33:00 +09:00
yutotnh
2cf9987ce3
fix: some typos in comment 2022-07-01 18:32:49 +09:00
Derek Mauro
96f51426e4 Remove support for C++11
v1.12.x is the last branch to support C++11
Future releases will require at least C++14

PiperOrigin-RevId: 458250106
Change-Id: Ibee2248649ff3c13daaa179135887848bf730f3f
2022-06-30 09:53:51 -07:00
Derek Mauro
219af0d535 Update version number in CMakeLists.txt
Note that this is 1.12.1 as there will be a patch release to fix this

PiperOrigin-RevId: 458216994
Change-Id: Ibca52a8db22ed06cb1a1adc4832be67fce69459a
2022-06-30 07:10:22 -07:00
Abseil Team
d9335595b4 Add support of 17-member structs to gmock UnpackStructImpl.
PiperOrigin-RevId: 458018249
Change-Id: I7df8f75ef5b5a6478e7301f959c221810ff9f0b3
2022-06-29 11:10:54 -07:00
Abseil Team
9406a60c78 Mark internal-only function as having internal linkage.
PiperOrigin-RevId: 457550818
Change-Id: I9046801b64ce4581d742d650451332fd56489632
2022-06-27 13:16:09 -07:00
Copybara-Service
cdbed602b9 Merge pull request #3912 from jarkenau:main
PiperOrigin-RevId: 457479731
Change-Id: Ia883186c01886196f23c3957381566eab3d76c5f
2022-06-27 07:55:52 -07:00
assafpr
dd72ed19fe
Update gtest.cc
fix a broken link
2022-06-27 09:59:06 +03:00
assafpr
d0af91ead3
Update gmock-matchers.h
branch master changed to main on link
2022-06-27 09:56:59 +03:00
assafpr
1547c2acc8
Update gmock-actions.h
master branch changed to main in links
2022-06-27 09:55:28 +03:00
assafpr
66d2463610
Update gmock-spec-builders_test.cc
master branch changed to main in link
2022-06-27 09:53:40 +03:00
assafpr
64df55449a
Update gtest-death-test.cc 2022-06-27 09:51:44 +03:00
assafpr
dfa990f942
Update gmock-spec-builders.cc 2022-06-27 09:50:36 +03:00
assafpr
df4b8edee0
Update advanced.md
master branch changed to main branch in links
2022-06-27 09:48:05 +03:00
Jérôme Travert
5eaa113903
Avoid implicit conversion from int to char 2022-06-26 19:01:00 +02:00
Jérôme Travert
72901486ba
Avoid implicit conversion from int to char 2022-06-26 18:59:46 +02:00
Julian Arkenau
b9d2e1f62f docs: update googletest README for release 1.12.0 2022-06-25 14:41:57 +02:00
Derek Mauro
5376968f69 Update README.md for release 1.12.0
PiperOrigin-RevId: 456833286
Change-Id: Iefcc6a71f5da9bb710f112b668cddcd1683a10ae
2022-06-23 12:18:54 -07:00
Derek Mauro
15460959cb Update versions of WORKSPACE dependencies
PiperOrigin-RevId: 456532035
Change-Id: I60fa4d4e7827516d317ce893377d1f72e49c6a2f
2022-06-22 09:23:46 -07:00
assafpr
fde6af6790
documentation, change mater branch to main 2022-06-22 16:21:35 +03:00
assafpr
b59ae848d1
Update faq.md 2022-06-22 16:12:54 +03:00
assafpr
f2f099fb70
Update CONTRIBUTING.md 2022-06-22 16:09:54 +03:00
assafpr
1b772a9bc4
documentation, change mater branch to main 2022-06-22 14:36:10 +03:00
assafpr
358a3f6e3e
documentation, change mater branch to main 2022-06-22 14:31:03 +03:00
assafpr
b3f3819a62
Update gmock_output_test_golden.txt 2022-06-22 14:21:07 +03:00
assafpr
3d1dcac4c4
change link from master to main in documentation
since master branch was changed to main, the links should be changed accordingly.
2022-06-22 14:15:53 +03:00
Derek Mauro
7df7853ea0 Update GCC floor container used by CI to fix the Bazel cache error
PiperOrigin-RevId: 456323043
Change-Id: I86e3d52b72b51c2d4e96f536daa7f84a52c598f5
2022-06-21 12:27:37 -07:00
Derek Mauro
86add13493 Disable warning C4251 around refactored code
PiperOrigin-RevId: 455452553
Change-Id: I1dc3772ae61daf6d2d39484a0b1aad7eb0134525
2022-06-16 13:18:32 -07:00
Copybara-Service
191ca1f3a9 Merge pull request #3863 from eidosmontreal:fix_unused-variable_warning
PiperOrigin-RevId: 454940948
Change-Id: Ic87dadfe9c6fc8882b0f425aa2056f0cc7a90b55
2022-06-14 13:24:55 -07:00
Abseil Team
8b521aa43a gmock_cook_book.md: Delete superfluous statement from 2014.
PiperOrigin-RevId: 454677195
Change-Id: I7a1419e22d617db41a5c310bc6f6158ba4cec1ab
2022-06-13 12:51:26 -07:00
Copybara-Service
b644b4fbbf Merge pull request #3866 from eidosmontreal:simplify_shouldusecolor
PiperOrigin-RevId: 454616721
Change-Id: I33b5671646ec027da48cc941baf84b4ddc722e07
2022-06-13 08:38:29 -07:00
Gaspard Petit
fe735a6986 Move declaration of kStdOutFileNo and kStdErrFileno
Move declaration of kStdOutFileNo and kStdErrFileno closer to where they are used to avoid having to guard for GTEST_HAS_STREAM_REDIRECTION twice
2022-06-11 10:26:41 -04:00
Abseil Team
b1f84bf176 Update googletest docs to indicate that RE2 is now used for regexp implementation when building with Bazel and using Abseil.
PiperOrigin-RevId: 454012698
Change-Id: I3a9df78368ffe3cb7cf3d315001125b97b1aebbe
2022-06-09 14:25:17 -07:00
Abseil Team
49c6185ae7 Remove undefined internal function.
Fixes #3856

PiperOrigin-RevId: 453992227
Change-Id: I5f3330a454bdcd6b0522ebba4cdfe2c888f8e638
2022-06-09 12:57:51 -07:00
Derek Mauro
0320f517fd Work around a maybe-uninitialized warning under GCC 12
Some Mock constructors insert the pointer to the Mock itself into a
global registry. Since GCC cannot see how the pointer is used (only as
an identifier), it cannot tell that the object doesn't need to be
initialized at that point at all. Work around this by using uintptr_t
instead.

PiperOrigin-RevId: 452380347
Change-Id: Ia5a493057ed90719de1d0efab71de9a8a08ddf8b
2022-06-01 14:08:04 -07:00
Gaspard Petit
a86777edf9 Fix for undefined symbol: testing::internal::Random::kMaxRange 2022-05-31 17:35:34 -04:00
Abseil Team
548b13dc3c Fix internal files
PiperOrigin-RevId: 452053766
Change-Id: I9498e8809f5e66e42cfa365199a5bbc41462a533
2022-05-31 08:33:31 -07:00