Commit Graph

  • 4267679b68 Fix the compilation of the matcher UnorderedElementsAre when used with a native pointer and size main Abseil Team 2026-09-17 10:21:28 -07:00
  • f840327b0f Fix misc-override-with-different-visibility warning Abseil Team 2026-09-15 08:05:04 -07:00
  • 8eff9e3366 Fix a null initializer for pthread_t in GTest's Mutex. Abseil Team 2026-09-10 09:46:43 -07:00
  • dd0a37b843 Use std::regex (defining GTEST_USES_STD_RE) instead of hand-rolled regex engine (defining GTEST_USES_SIMPLE_RE) in GoogleTest Abseil Team 2026-09-09 11:33:27 -07:00
  • 7e91a413e8 Merge pull request #5082 from Muszic:fix-json-utf8-output Copybara-Service 2026-09-08 17:06:36 -07:00
  • 283c17563f Remove workarounds for MSVC with versions _MSC_VER < 1925 Abseil Team 2026-09-03 08:28:12 -07:00
  • efbef50b59 Remove workarounds for MSVC with versions _MSC_VER < 1915 Abseil Team 2026-09-02 14:01:08 -07:00
  • 8ecdd89c69 Remove obsolete IBM VisualAge / XL C++ workarounds in googletest Abseil Team 2026-09-02 07:36:56 -07:00
  • b769fc08a4 Preserve UTF-8 strings in JSON output Muszic 2026-09-02 16:13:49 +05:30
  • 5f31f20eda Remove obsolete Borland C++ workarounds in googletest Abseil Team 2026-09-01 21:38:06 -07:00
  • 3b49a56fe3 Remove obsolete Sun Studio/Solaris workarounds in googletest Abseil Team 2026-09-01 20:52:20 -07:00
  • c3e1e7fe8e Avoid linter warning about multiline comments Abseil Team 2026-09-01 14:15:51 -07:00
  • defb708946 Remove obsolete HP aC++ workarounds in googletest Abseil Team 2026-09-01 14:12:59 -07:00
  • 4957858705 Remove some obsolete GCC workarounds Abseil Team 2026-09-01 12:12:13 -07:00
  • c06edf0146 Remove obsolete Clang check for __has_warning("-Wzero-as-null-pointer-constant") Abseil Team 2026-09-01 08:16:23 -07:00
  • d94a7326e9 Remove BiggestInt and just use intmax_t Abseil Team 2026-08-31 12:15:18 -07:00
  • 36ba75f0ad UnorderedElementsAre(): Allow matching containers where end is a [sentinel](https://en.cppreference.com/cpp/iterator/sentinel_for). ElementsAre already supports that. Abseil Team 2026-08-27 04:13:04 -07:00
  • 938220d0f6 Use non-POSIX function names on MSVC to avoid errors when _CRT_DECLARE_NONSTDC_NAMES = 0 Abseil Team 2026-08-26 12:05:06 -07:00
  • e273a2d81e Use non-POSIX function names on MSVC to avoid errors when _CRT_DECLARE_NONSTDC_NAMES = 0 Abseil Team 2026-08-24 18:39:36 -07:00
  • bfff9fc387 Use non-POSIX function names on MSVC to avoid errors when _CRT_DECLARE_NONSTDC_NAMES = 0 Abseil Team 2026-08-24 13:24:48 -07:00
  • 7260682388 Merge pull request #5046 from UditDewan:fix/print-invalid-char-code-units Copybara-Service 2026-08-21 14:02:47 -07:00
  • 0daf775f8c Merge pull request #4824 from DoDoENT:fix/emscripten-without-threads Copybara-Service 2026-08-19 12:35:58 -07:00
  • 1a447fdce7 avoid -lpthread link option when building with emscripten without threads Nenad Mikša 2025-08-31 10:53:41 +02:00
  • 91c99b6ffe Add missing const in INSTANTIATE_TEST_SUITE_P. Abseil Team 2026-08-18 07:43:53 -07:00
  • 7358557f03 Remove wchar_t overloads if GTEST_HAS_STD_WSTRING is disabled Abseil Team 2026-08-17 10:34:38 -07:00
  • 71edd0ef29 Extract GTEST_HAS_NATIVE_WCHAR Abseil Team 2026-08-17 09:41:48 -07:00
  • a2118f6587 Use std::make_unique to avoid clang-tidy false positive in GTEST_TEST_ macro. Abseil Team 2026-08-15 18:34:19 -07:00
  • 49495eacfd Use STL capabilities to choose GTEST_HAS_STD_WSTRING default Abseil Team 2026-08-13 12:43:36 -07:00
  • aa1eefe02c Don't reference std::char_traits<wchar_t> when !GTEST_HAS_STD_WSTRING Abseil Team 2026-08-13 10:39:10 -07:00
  • 002d14757f When Return is passed to WillOnce (i.e. converted to OnceAction) delegate to be equivalent to Return(ByMove(...)) Abseil Team 2026-08-13 05:33:37 -07:00
  • 02e50550c6 Default-enable wstring support for Android API level 21 and above. Abseil Team 2026-08-12 10:47:33 -07:00
  • 963dd8ea18 Update version strings to 1.18 Prashant Kumar 2026-08-11 06:58:58 -07:00
  • 063de7e957 Prepare for v1.18.0 (#5055) v1.18.0 v1.18.x Prashant Kumar 2026-08-10 10:19:17 -07:00
  • d89aac5f0d Merge pull request #5053 from zmajeedforks:zmajeed_fix_msvc_crt_override Copybara-Service 2026-08-07 11:15:29 -07:00
  • 4cb0ab12a1 Remove -WX to prevent compilation errors for users when a symbol becomes deprecated Abseil Team 2026-08-06 13:13:13 -07:00
  • c0afb7f69d Fix issue 5042: Don't override VC++ project C runtime library settings when googletest is used through cmake FetchContent or add_subdirectory zmajeed 2026-08-06 09:52:33 -05:00
  • 4f472747b1 Set GTEST_INTERNAL_HAS_STRING_VIEW = 1 in googletest as C++17 always supports it Abseil Team 2026-08-05 14:31:25 -07:00
  • b607d9f590 Update GoogleTest dependencies in preparation for release Prashant Kumar 2026-08-05 12:29:11 -07:00
  • c5a47cc5bd Fix forward broken gmock-matchers_test Abseil Team 2026-08-05 07:51:58 -07:00
  • 488c47cc68 Make string matchers work with std::wstring_view Abseil Team 2026-08-04 13:41:54 -07:00
  • 5f9ad7d401 Add missing const in GTEST_TEST_BOOLEAN_. Abseil Team 2026-08-03 19:06:11 -07:00
  • 51725d1111 Rollback: Improve detection for wchar_t and wstring support. Abseil Team 2026-08-03 17:36:25 -07:00
  • 92f71eddb0 Improve detection for wchar_t and wstring support. Abseil Team 2026-08-03 14:59:53 -07:00
  • 1b6f64d659 Automated Code Change Abseil Team 2026-08-01 00:06:44 -07:00
  • 3940de9189 Relax std::monostate printing assertion in test on Windows Prashant Kumar 2026-07-30 07:16:29 -07:00
  • a0f06a70e3 Make GoogleTest handle std::monostate and valueless_by_exception() for std::variant similarly to how it handles std::nullopt Abseil Team 2026-07-29 11:07:53 -07:00
  • 3ff51c3e80 Merge pull request #5041 from alvinjaison:fix/get-test-suite-shuffle-index Copybara-Service 2026-07-28 09:58:12 -07:00
  • c6f04243ed Automated Code Change Abseil Team 2026-07-27 22:07:00 -07:00
  • af4c3cfcb3 Automated Code Change Abseil Team 2026-07-27 21:56:57 -07:00
  • ecb18f0b03 Automated Code Change Abseil Team 2026-07-27 21:17:08 -07:00
  • 806b89cf63 Print char8_t/char16_t code units that aren't code points as code units uditDewan 2026-07-26 15:58:15 -04:00
  • b78aa5ee64 Automated Code Change Abseil Team 2026-07-24 23:56:12 -07:00
  • 56cf341d9c Remove useless casts in gtest-internal-inl.h Abseil Team 2026-07-24 19:31:15 -07:00
  • 136a6b8865 Merge pull request #4994 from edge90:fix/onceaction-tuple-sfinae-order Copybara-Service 2026-07-24 17:31:32 -07:00
  • 425811f10e Undo make string matchers work with std::wstring_view due to internal breakages Abseil Team 2026-07-24 11:26:48 -07:00
  • 679a61d3a8 Merge pull request #5035 from K-S-Manikandan:fix-cmake-uninit-var Copybara-Service 2026-07-24 10:06:23 -07:00
  • 80b3670e1a Maintain constness in assertions & expectations to resolve operator bool() cv-qualifier inconsistency between ASSERT_FALSE/EXPECT_FALSE vs. ASSERT_TRUE/EXPECT_TRUE Abseil Team 2026-07-24 10:05:06 -07:00
  • 44f4904703 Merge pull request #4798 from scivision:oneapi Copybara-Service 2026-07-24 10:04:54 -07:00
  • fef8e5e23b Make string matchers work with std::wstring_view Abseil Team 2026-07-24 10:02:48 -07:00
  • a798392000 Avoid triggering -Wzero-as-null-pointer-constant in HandleExceptionsInMethodIfSupported() Abseil Team 2026-07-24 10:02:16 -07:00
  • c914e89e2a Merge pull request #4877 from charles-lunarg:fix_CMake_option_gtest_force_shared_crt Copybara-Service 2026-07-24 10:02:11 -07:00
  • 0dbcd8d006 Fix typo in docs/gmock_cheat_sheet.md Abseil Team 2026-07-24 10:01:08 -07:00
  • 1269db9643 Fix GetTestSuite(i) ignoring shuffle order UnitTestImpl::GetTestSuite(int i) computes the shuffled index from test_suite_indices_ but then accesses test_suites_ using the raw parameter 'i' instead of the computed 'index'. This causes the public API UnitTest::GetTestSuite(i) to return test suites in original registration order rather than the active shuffle order. The mutable variant GetMutableSuiteCase(i) correctly uses 'index', and the equivalent function TestSuite::GetTestInfo(i) also uses 'index'. This was a copy-paste typo introduced in commit bd851333 (Sep 2009) when the shuffle feature was first added. The bug is observable from within TestEventListener callbacks during test execution when --gtest_shuffle is active. Alvin Jaison 2026-07-24 16:11:55 +01:00
  • a901203eff Display the Win32 error code when GetTempFileName() fails on Windows to aid debugging Abseil Team 2026-07-24 06:28:38 -07:00
  • d4e2591485 Merge pull request #5033 from UditDewan:fix/absolute-install-includedir Copybara-Service 2026-07-24 06:25:48 -07:00
  • 7ec05f657d Handle both -F and /F formats in GoogleTest CMake command lines as MSVC accepts both Abseil Team 2026-07-24 06:24:45 -07:00
  • a503186d79 Merge pull request #5039 from alvinjaison:fix/premature-exit-file-null-deref Copybara-Service 2026-07-23 13:21:28 -07:00
  • 7f7595f67d Make GTEST_DEFINE... macros also declare the flag to avoid triggering -Wmissing-variable-declarations Abseil Team 2026-07-23 10:39:25 -07:00
  • e331081278 Fix null pointer dereference in ScopedPrematureExitFile When TEST_PREMATURE_EXIT_FILE is set to a path that cannot be opened for writing (e.g., non-existent directory or insufficient permissions), posix::FOpen returns NULL. Previously, fwrite and fclose were called unconditionally on the result, causing a segmentation fault. This change: - Adds a null check before calling fwrite/fclose - Tracks whether the file was successfully created via a file_created_ flag, so the destructor only attempts removal when the file actually exists This matches the existing comment's stated intent that I/O errors should be silently ignored. Alvin Jaison 2026-07-23 09:24:19 +01:00
  • 08da6214b8 Merge pull request #5036 from Tachi107:cmake-pthread-flag Copybara-Service 2026-07-22 11:49:28 -07:00
  • 1be4946590 Prefer -pthread flag on CMake Andrea Pappacoda 2026-07-21 19:24:45 -03:00
  • 30a3151b0c Fix broken tests due to deprecation warning Mike Kruskal 2026-07-21 09:06:04 -07:00
  • 51109ebb47 fix: initialize cxx_strict_flags before compiler branches Manikandan K. S. 2026-07-19 18:34:59 +05:30
  • fcd5e26089 Fix exported include paths for absolute CMAKE_INSTALL_INCLUDEDIR uditDewan 2026-07-18 14:59:31 -04:00
  • fa005b296f Set up inlining for InvokeWithoutArgs when passed a functor. Abseil Team 2026-07-17 10:57:56 -07:00
  • 4141c384aa Merge pull request #4939 from fresh3nough:fix/cmake-python3-find-4847 Copybara-Service 2026-07-16 22:01:49 -07:00
  • a25f43576e Fixes -Wtautological-pointer-compare in gmock-matchers Bogdan Graur 2026-07-15 18:50:43 -07:00
  • b973ccb9ab Merge pull request #5025 from K-S-Manikandan:fix/output-test-python3 Copybara-Service 2026-07-15 07:37:08 -07:00
  • f132c89311 Merge pull request #5019 from kamleshkumaryadav5951-pixel:fix-emscripten-pthread-odr Copybara-Service 2026-07-11 21:38:07 -07:00
  • 961158b5e3 Merge pull request #4869 from phst:alwayslink Copybara-Service 2026-07-11 21:03:28 -07:00
  • 86ec940f63 fix: Python 3 crash in googletest-output-test.py debug mode Manikandan K. S. 2026-07-11 19:33:21 +05:30
  • bc410696f4 Support pthread-enabled Emscripten in GTEST_HAS_PTHREAD kamlesh kumar yadav 2026-07-09 12:23:52 +05:30
  • 8240fa7d62 Merge pull request #5011 from K-S-Manikandan:fix/compare-lib-android Copybara-Service 2026-07-07 16:54:00 -07:00
  • 7d012aa162 Fail smoothly for nullptr on c-style strings in IsEmpty Mike Kruskal 2026-07-07 15:08:58 -07:00
  • cd975499e8 Merge pull request #5008 from K-S-Manikandan:fix/wide-string-isempty Copybara-Service 2026-07-07 12:49:50 -07:00
  • 3064a609c7 Merge pull request #5005 from tejas-sharma27:fix-help-missing-flags Copybara-Service 2026-07-07 08:32:49 -07:00
  • 3549aa63f2 Merge pull request #5006 from K-S-Manikandan:fix/readme-fullstops Copybara-Service 2026-07-06 20:45:23 -07:00
  • 985d542c73 Merge pull request #5010 from K-S-Manikandan:fix/main-version-bump Copybara-Service 2026-07-06 14:24:28 -07:00
  • 18c6bc3dc4 fix: only use __cpp_lib_three_way_comparison for <compare> detection Manikandan K. S. 2026-07-05 09:03:35 +05:30
  • 22bda2ba15 chore: bump main branch version to 1.18.0 Manikandan K. S. 2026-07-05 08:54:29 +05:30
  • df4fdc5cfd fix: add C-style wide string overload to IsEmpty matcher Manikandan K. S. 2026-07-04 22:50:12 +05:30
  • 1c2082e8bd docs: add missing full stops to feature descriptions in README Manikandan K. S. 2026-07-04 22:14:52 +05:30
  • 5b39f4c876 Add missing public flags to --help output Tejas Sharma 2026-07-04 21:54:09 +05:30
  • 973323ed64 Delay name resolution by un-qualifying DynamicCastMessage calls from gMock. Clayton Knittel 2026-06-30 12:20:38 -07:00
  • 78f6d54f9f Merge pull request #5003 from fuzzard:fix_cmake_pdb_output Copybara-Service 2026-06-29 10:41:38 -07:00
  • 8b53336594 Automated Code Change Abseil Team 2026-06-23 06:45:04 -07:00
  • aa40ee603e Automated Code Change Abseil Team 2026-06-23 06:02:44 -07:00
  • d4a1a3599b cmake: Fix PDB output dir for install of static and shared lib Brent Murphy 2026-06-22 18:27:35 +10:00
  • 1fc11dea10 Automated Code Change Abseil Team 2026-06-22 00:44:06 -07:00
  • 0b1e895ba4 Specialize testing::WhenDynamicCastTo for protobuf messages. Clayton Knittel 2026-06-16 13:31:36 -07:00