- 30 Mar, 2019 1 commit
-
-
Enji Cooper authored
gtest prior to this change would completely ignore `GTEST_SKIP()` if called in `Environment::SetUp()`, instead of bailing out early, unlike `Test::SetUp()`, which would cause the tests themselves to be skipped. The only way (prior to this change) to skip the tests would be to trigger a fatal error via `GTEST_FAIL()`. Desirable behavior, in this case, when dealing with `Environment::SetUp()` is to check for prerequisites on a system (example, kernel supports a particular featureset, e.g., capsicum), and skip the tests. The alternatives prior to this change would be undesirable: - Failing sends the wrong message to the test user, as the result of the tests is indeterminate, not failed. - Having to add per-test class abstractions that override `SetUp()` to test for the capsicum feature set, then skip all of the tests in their respective SetUp fixtures, would be a lot of human and computational work; checking for the feature would need to be done for all of the tests, instead of once for all of the tests. For those reasons, making `Environment::SetUp()` handle `GTEST_SKIP()`, by not executing the testcases, is the most desirable solution. In order to properly diagnose what happened when running the tests if they are skipped, print out the diagnostics in an ad hoc manner. Update the documentation to note this change and integrate a new test, gtest_skip_in_environment_setup_test, into the test suite. This change addresses #2189. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
- 28 Mar, 2019 3 commits
-
-
Abseil Team authored
Update XML and JSON output to be consistent with the standard. PiperOrigin-RevId: 239833242
-
Gennadiy Civil authored
-
Gennadiy Civil authored
-
- 26 Mar, 2019 2 commits
-
-
Gennadiy Civil authored
Update Xcode project file
-
Syohei YOSHIDA authored
- Remove files which no longer exists - Add newer file
-
- 21 Mar, 2019 6 commits
-
-
Gennadiy Civil authored
Note about INSTANTIATE_TEST_SUITE_P / INSTANTIATE_TEST_CASE_P
-
Gennadiy Civil authored
Co-Authored-By:antismap <michael.thenault@gmail.com>
-
Gennadiy Civil authored
PiperOrigin-RevId: 239404016
-
Abseil Team authored
Remove mention of unused type ProtocolMessage. PiperOrigin-RevId: 239242706
-
Abseil Team authored
Action helpers need to pass by const& so that they can work with unique_ptr. PiperOrigin-RevId: 239062671
-
antismap authored
See https://github.com/google/googletest/issues/2065
-
- 20 Mar, 2019 1 commit
-
-
Gennadiy Civil authored
DesignDoc Markdown table was broken
-
- 19 Mar, 2019 1 commit
-
-
Tobias Müller authored
-
- 15 Mar, 2019 1 commit
-
-
Seth Raymond authored
Added a missing newline
-
- 05 Mar, 2019 3 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 236716851
-
Abseil Team authored
Fix emission of -Wzero-as-null-pointer-constant when comparing integers. The following code fails to compile: #pragma clang diagnostic error "-Wzero-as-null-pointer-constant" void foo() { EXPECT_EQ(0, 0); } This happens because gtest checks the first argument to EXPECT_EQ and ASSERT_EQ is a null pointer constant. The magic it does to do this causes the warning to be emitted. This patch removes that check. It replaces the explicit check with a Compare overload that can only be selected when 0 or nullptr is passed on the LHS with a pointer on the right. This patch does not suppress -Wzero-as-null-pointer-constant when users are actually using it as NULL. PiperOrigin-RevId: 236654634 -
Abseil Team authored
Build gmock cleanly with clang -Wextra-semi and -Wextra-semi-stmt Extends 56ef07a2 to take -Wc++98-compat-extra-semi (https://reviews.llvm.org/D43162) and -Wextra-semi-stmt (https://reviews.llvm.org/D52695) into account. For https://crbug.com/926235. PiperOrigin-RevId: 236643095
-
- 01 Mar, 2019 3 commits
-
-
Abseil Team authored
Let embedders customize GTEST_INTERNAL_DEPRECATED(). GTEST_INTERNAL_DEPRECATED is currently used to nudge googletest users to migrate off old TEST_CASE macros to the new TEST_SUITE macros. This move is non-trivial for Chromium (see https://crbug.com/925652), and might be difficult for other big projects with many dependencies. This CL facilitates moving off of deprecated APIs by making it possible for an embedder to define GTEST_INTERNAL_DEPRECATED() in gtest/internal/custom/gtest-port.h. Example usage: 1) #define GTEST_INTERNAL_DEPRECATED() to nothing, to disable deprecation warnings while migrating off googletest's deprecated APIs. This can be preferable to having to disable all deprecation warnings (-Wno-error=deprecated or -Wno-deprecated-declarations). 2) #define GTEST_INTERNAL_DEPRECATED() for an unsupported compiler. PiperOrigin-RevId: 236171043
-
Abseil Team authored
Build gmock cleanly with clang -Wextra-semi For https://crbug.com/926235. From https://github.com/google/googletest/pull/2139. Fixes https://github.com/google/googletest/issues/2138. PiperOrigin-RevId: 235832527
-
Carlo Wood authored
-
- 25 Feb, 2019 3 commits
-
-
Abseil Team authored
Replace more pump'd code with variadic templates. PiperOrigin-RevId: 235584585
-
Gennadiy Civil authored
Fix grammatical error in primer.md
-
Ryan Sinnet authored
-
- 22 Feb, 2019 2 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 235248114
-
Gennadiy Civil authored
PiperOrigin-RevId: 235220570
-
- 21 Feb, 2019 2 commits
-
-
Enji Cooper authored
Due to some caveats in the FreeBSD build system and the fact that the source file is used to compile 2 different death tests with different flags, I needed (as a shortterm workaround) to copy the test to 2 differently named files. While this works for compiling the test, as I discovered, this doesn't work with running `CxxExceptionDeathTest.PrintsMessageForStdException`, as the testcase hardcodes `googletest-death-test_ex_test.cc`. Use `__FILE__` when looking for failures, as opposed to looking for the hardcoded name as it can vary depending on how the test was built. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Gennadiy Civil authored
PiperOrigin-RevId: 235012245
-
- 20 Feb, 2019 6 commits
-
-
Gennadiy Civil authored
PiperOrigin-RevId: 234845565
-
Gennadiy Civil authored
PiperOrigin-RevId: 234844287
-
Gennadiy Civil authored
PiperOrigin-RevId: 234840107
-
misterg authored
Internal Change PiperOrigin-RevId: 234823465
-
Abseil Team authored
Update gtest-death-test to use new Fuchsia API Fuchsia has renamed this API and removed the need for several parameters. We now use the newer, simpler API. PiperOrigin-RevId: 234617715
-
Gennadiy Civil authored
Avoid array index out of range
-
- 19 Feb, 2019 2 commits
-
-
Diomidis Spinellis authored
Issue: #2140
-
Enji Cooper authored
clang++ compilation when `-Wsign-conversion` is currently broken and the issues within the code are varied and widespread. For the time being ignore `-Wsign-conversion` issues, even though some of them are valid and bleed over into issues that would be found with `-Wtautological-compare`, et al. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
- 13 Feb, 2019 4 commits
-
-
Enji Cooper authored
Comment out unused method parameters in their relevant definitions. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
`DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
`DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
Enji Cooper authored
Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-