summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #3499 from slowy07:fixingdinord2021-07-296-8/+8
|\ \ | | | | | | | | | PiperOrigin-RevId: 386888057
| * | fix: typo codespelling commentslowy072021-07-246-8/+8
|/ /
* | Googletest exportAbseil Team2021-07-2233-73/+5
| | | | | | | | | | | | Delete GOOGLETEST_CM.* tags from C++ code. PiperOrigin-RevId: 386268534
* | Googletest exportAbseil Team2021-07-223-5/+5
| | | | | | | | | | | | Fix include guards in gen_pred_test.py PiperOrigin-RevId: 386052814
* | Merge pull request #3472 from jwnimmer-tri:fix-dont-macrosCJ Johnson2021-07-222-4/+7
|\ \ | | | | | | | | | PiperOrigin-RevId: 385627491
| * | Fix location of GOOGLETEST_CM0011 markerDerek Mauro2021-07-141-1/+1
| | |
| * | Use GTEST_DONT_DEFINE_TEST_F to guard TEST_FJeremy Nimmer2021-07-012-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation is clear that the FOO we'll be guarding always matches the spelling of the DONT macro. A single guard macro should not toggle more than one implementation macro. This fixes a regression in 7413280c52c1f759395572a384165023d24eeb57. Relatedly, improve the documentation of the DONT macros to bring the list of valid FOO values up to date.
* | | Googletest exportdmauro2021-07-221-10/+10
| | | | | | | | | | | | | | | | | | | | | Run buildifier on WORKSPACE Fixes #3483 PiperOrigin-RevId: 385610473
* | | Merge pull request #3484 from mbinna:bazel_qnx_regexCJ Johnson2021-07-221-1/+1
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 384913062
| * | | Link -lregex on QNXManuel Binna2021-07-071-1/+1
| |/ / | | | | | | | | | | | | | | | According to the 2nd point on [1], -lregex is required on QNX. [1] https://www.qnx.com/developers/docs/7.1/#com.qnx.doc.ide.userguide/topic/writing_test_programs.html
* | | Googletest exportAbseil Team2021-07-091-1/+0
| | | | | | | | | | | | | | | | | | Remove unneeded using ::std::get; PiperOrigin-RevId: 383688097
* | | Googletest exportAbseil Team2021-07-091-0/+1
| | | | | | | | | | | | | | | | | | Suppress a clang-tidy warning in the MATCHER(name, description) macro. PiperOrigin-RevId: 383587271
* | | Googletest exportAbseil Team2021-07-074-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | Add `Conditional` wrapper to gtest This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood. PiperOrigin-RevId: 383407665
* | | Googletest exportAbseil Team2021-07-0721-488/+470
| | | | | | | | | | | | | | | | | | Introduce GTEST_FLAG_GET and GTEST_FLAG_SET macros. PiperOrigin-RevId: 382808313
* | | Googletest exportAbseil Team2021-07-075-11/+149
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gtest: Add a flag to only set up/tear down test environments once when repeating Currently when running a test multiple times using `--gtest_repeat` the global test environment(s) are set up and torn down for each iteration of the test. When checking for flakes in tests that have expensive dependencies that are set up in the test environment (subprocesses, external dependencies, etc) this can become expensive. To support finding flakes in tests that fit into this category, where the setup phase is expensive but each test case is fast, allow callers to specify via `--gtest_recreate_environments_when_repeating=false` that the test environments should only be set up once, for the first iteration, and only torn down once, on the last iteration. This makes running a test with `--gtest_repeat=1000` a much faster and more pleasant experience. PiperOrigin-RevId: 382748942
* | Googletest exportAbseil Team2021-06-303-17/+209
| | | | | | | | | | | | Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0). PiperOrigin-RevId: 382210276
* | Merge pull request #3465 from mbinna:bazel_qnxAndy Soffer2021-06-303-0/+9
|\ \ | | | | | | | | | PiperOrigin-RevId: 382189077
| * | Don't link pthread on QNXManuel Binna2021-06-263-0/+9
| | | | | | | | | | | | | | | | | | | | | On QNX, pthread is part of libc [1]. There's no separate pthread library to link. [1] https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.lib_ref/topic/p/pthread_create.html
* | | Merge pull request #3457 from alexkaratarakis:wcovered_switch_defaultAndy Soffer2021-06-301-2/+0
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 382188112
| * | | Fix EXPECT_DEATH() and ASSERT_DEATH() triggering -Wcovered-switch-defaultAlex Karatarakis2021-06-231-2/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | EXPECT_DEATH() and ASSERT_DEATH() have a switch case where every possible case is covered. This makes the default case unnecessary and triggers -Wcovered-switch-default. Due to these being macros, the lines are expanded in user code and are thus subject to warnings of the target codebase. Fixes #3456
* | | Googletest exportAbseil Team2021-06-301-24/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make multiple attempts to verify GetThreadCount() Testing GetThreadCount() is inheritently noisy, as other threads can be started or destroyed between two calls to GetThreadCount(). This is especially true under certain analyzer configurations, such as TSAN. PiperOrigin-RevId: 381951799
* | | Googletest exportAbseil Team2021-06-301-62/+0
|/ / | | | | | | | | | | Deleting deprecated file. PiperOrigin-RevId: 381938709
* | Merge pull request #3443 from hyukmyeong:typodinord2021-06-227-17/+17
|\ \ | | | | | | | | | PiperOrigin-RevId: 380705469
| * | fix typosHyuk Myeong2021-06-137-17/+17
| | |
* | | Googletest exportdmauro2021-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove -Werror from the CMake compiler flags We should not force warnings as errors on users. Sometimes compilers introduce new warnings which will break builds. Instead, we manually turn this flag on in our continuous integration scripts so we can catch these errors, but not force them on our users. Fixes #3447 PiperOrigin-RevId: 380241852
* | | Merge pull request #3429 from 1KoT1:masterCJ Johnson2021-06-171-8/+8
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 379625931
| * | | feat: make a matcher ElementsAreArray applicable for std rangesVasilii Pochkaenko2021-06-151-2/+2
| | | |
* | | | Merge pull request #3200 from ellert:port-to-GNU/HurdCJ Johnson2021-06-175-6/+12
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 379383941
| * | | | Port to GNU/HurdMattias Ellert2020-12-305-6/+12
| | | | |
* | | | | Merge pull request #3183 from georgthegreat:patch-1CJ Johnson2021-06-171-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | PiperOrigin-RevId: 378915968
| * | | | Use proper feature test macro to test if library supports char8_tYuriy Chernyshov2020-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Reference is here: https://en.cppreference.com/w/cpp/feature_test This PR fixes the weird case of compiling with `clang++ -std=c++17 -fchar8_t`
* | | | | Googletest exportrelease-1.11.0Abseil Team2021-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release GoogleTest 1.11.0 PiperOrigin-RevId: 378861756
* | | | | Googletest exportAbseil Team2021-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internal change PiperOrigin-RevId: 378672633
* | | | | Googletest exportAbseil Team2021-06-111-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add feature request issue template PiperOrigin-RevId: 378552571
* | | | | Googletest exportdmauro2021-06-111-61/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Delete Travis config file PiperOrigin-RevId: 378483262
* | | | | Googletest exportAbseil Team2021-06-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | cleanup: fix spurious MSAN warnings with Clang 12 PiperOrigin-RevId: 378430614
* | | | | Googletest exportAbseil Team2021-06-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add CNAME file for custom domain PiperOrigin-RevId: 378384525
* | | | | Googletest exportAbseil Team2021-06-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update broken link PiperOrigin-RevId: 378272186
* | | | | Googletest exportAbseil Team2021-06-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add CNAME file for custom domain PiperOrigin-RevId: 377604116
* | | | | Merge pull request #3421 from florin-crisan:bugfix/3420-dll-link-failureDerek Mauro2021-06-082-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 377367006
| * | | | | #3420 Declare MarkAsIgnored as a DLL exportFlorin Crișan2021-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was causing the following linker error on Microsoft Visual C++ when compiling as a DLL: ``` googletest-param-test-test.cc.obj : error LNK2019: unresolved external symbol "public: __cdecl testing::internal::MarkAsIgnored::MarkAsIgnored(char const *)" (??0MarkAsIgnored@internal@testing@@QEAA@PEBD@Z) referenced in function "void __cdecl works_here::`dynamic initializer for 'gtest_allow_ignore_NotInstantiatedTest''(void)" (??__Egtest_allow_ignore_NotInstantiatedTest@works_here@@YAXXZ) ```
| * | | | | #3420 Properly declare all overloads of testing::internal::PrintTo as DLL ↵Florin Crișan2021-06-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exports This was causing the following linker error on Microsoft Visual C++ when compiling as a DLL: ``` googletest-printers-test.cc.obj : error LNK2019: unresolved external symbol "void __cdecl testing::internal::PrintTo(char16_t const *,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?PrintTo@internal@testing@@YAXPEB_SPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: static void __cdecl testing::internal::UniversalPrinter<char16_t const *>::Print(char16_t const * const &,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?Print@?$UniversalPrinter@PEB_S@internal@testing@@SAXAEBQEB_SPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) googletest-printers-test.cc.obj : error LNK2019: unresolved external symbol "void __cdecl testing::internal::PrintTo(char32_t const *,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?PrintTo@internal@testing@@YAXPEB_UPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: static void __cdecl testing::internal::UniversalPrinter<char32_t const *>::Print(char32_t const * const &,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?Print@?$UniversalPrinter@PEB_U@internal@testing@@SAXAEBQEB_UPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) ```
* | | | | | Googletest exportdmauro2021-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix MSVC warning C4275: non dll-interface class 'testing::MatcherDescriberInterface' used as base for dll-interface class 'testing::internal::MatcherBase<std::string>' Fixes #3415 PiperOrigin-RevId: 377352684
* | | | | | Merge pull request #3393 from JC3:patch-1Derek Mauro2021-06-081-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | PiperOrigin-RevId: 377289133
| * | | | | isalnum -> IsAlNum for correct handling of signed charsJason C2021-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I spotted this in https://github.com/assimp/assimp/pull/3880/commits/7dd7a053a91322fad88cdf958c6d0b3b7b91cb90 and figured I'd fix it here, too. If this is not the right thing to do, please lmk so I can undo it in assimp, too. Seems right, though. It's the only spot in gtest where a ctype call was made directly.
* | | | | | Googletest exportAbseil Team2021-06-023-48/+1460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create new Testing API reference PiperOrigin-RevId: 376969148
* | | | | | Googletest exportAbseil Team2021-06-024-153/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create new Mocking Reference PiperOrigin-RevId: 376951575
* | | | | | Googletest exportAbseil Team2021-06-021-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken link PiperOrigin-RevId: 375995669
* | | | | | Googletest exportAbseil Team2021-06-027-581/+704
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create Assertions Reference PiperOrigin-RevId: 375824718
* | | | | | Googletest exportdmauro2021-06-023-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1 Updates Bazel dependencies Removes the last usage of the deprecated and removed Python2 PiperOrigin-RevId: 375759184