- 08 May, 2020 2 commits
-
-
Martin Storsjö authored
The documentation for IsDebuggerPresent says that one just should include windows.h, as that one is an umbrella header that includes the header that declares IsDebuggerPresent. In older Windows SDKs, debugapi.h didn't exist and IsDebuggerPresent was declared in winbase.h (also included by windows.h). This should fix issue #2822 properly.
-
Martin Storsjö authored
This reverts commit a9f6c1ed. That commit cannot fix the issue it sets out to fix. The original issue, #2822, was that building with a toolset targeting XP compatibility is missing the debugapi.h header - as debugapi.h didn't exist in older Windows SDKs. Commit a9f6c1ed misinterpreted the Microsoft documentation about IsDebuggerPresent. The information about which header to use, "debugapi.h (include Windows.h)" means that the function declaration currently lives in debugapi.h, but for compatibility, just include the Windows.h umbrella header. In older Windows SDKs (e.g. the v6.0a SDK), IsDebuggerPresent is declared in winbase.h, and debugapi.h doesn't exist at all in those versions. Including Windows.h with a different capitalization than the existing include won't help finding headers that don't exist. Including Windows.h with a capital W breaks cross compilation with mingw toolchains, where the header always has been spelled with a lower case W. When building on native windows, the file system is case insensitive and the capitalization doesn't matter. This fixes issue #2840.
-
- 05 May, 2020 1 commit
-
-
Abseil Team authored
Addresses Github issue (https://github.com/google/googletest/issues/2822) by following the Microsoft documention (https://docs.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-isdebuggerpresent) to include capital-W Windows.h before including debugapi.h. See "Header debugapi.h (include Windows.h)" PiperOrigin-RevId: 309745868
-
- 09 Apr, 2020 1 commit
-
-
Malcolm Parsons authored
-
- 29 Mar, 2020 1 commit
-
-
Laurent VERDOÏA authored
-
- 24 Mar, 2020 1 commit
-
-
Abseil Team authored
Add --gtest_fail_fast support to googletest. - Analogous functionality to to golang -test.failfast and python --failfast - Stops test execution upon first test failure. - Also add support Bazel equivalent env var (TESTBRIDGE_TEST_RUNNER_FAIL_FAST) PiperOrigin-RevId: 302488880
-
- 19 Mar, 2020 1 commit
-
-
Calum Robinson authored
Only prints failures and a total pass count
-
- 17 Mar, 2020 1 commit
-
-
Abseil Team authored
Move internal function out of header because Hyrum's law always wins. PiperOrigin-RevId: 301446904
-
- 28 Feb, 2020 1 commit
-
-
Abseil Team authored
Rename internal color enumerators to avoid conflicts with curses.h macro definitions. Fixes #2685 PiperOrigin-RevId: 297639382
-
- 21 Feb, 2020 1 commit
-
-
Johan Mabille authored
-
- 21 Jan, 2020 1 commit
-
-
Abseil Team authored
Add extra filtering so that the reported message differentiates between the case where INSTANTIATE_TEST_SUITE_P is missing vs. the case where TEST_P is missing. PiperOrigin-RevId: 290114508
-
- 16 Jan, 2020 4 commits
-
-
Abseil Team authored
Correct the spelling of PARAMETERIZED. PiperOrigin-RevId: 289897278
-
Abseil Team authored
Wire up things to support marking a type paramaterized test as allowed to be un-instantiated. PiperOrigin-RevId: 289699939
-
Abseil Team authored
Add GTEST_ALLOW_UNINSTANTIATED_PARAMTERIZED_TEST to mark a paramaterized test as allowed to be un-instantiated. This allows test suites, that are defined in libraries and, for other reasons, get linked in (which should probably be avoided, but isn't always possible) to be marked as allowed to go uninstantiated. This can also be used to grandfather existing issues and expedite adoption of the checks with regards to new cases before they can be fixed. PiperOrigin-RevId: 289581573
-
Abseil Team authored
Change testing::TempDir() return value for Android PiperOrigin-RevId: 289102017
-
- 02 Jan, 2020 1 commit
-
-
Abseil Team authored
Add option (default to disabled) to make C++ type parameterized tests (TYPED_TEST_P) fail when they're not instantiated. When an un-instantiated TYPED_TEST_P is found, a new test will be inserted that emits a suitable message. For now, that is just a notice, but the hope it to flip the bit to make it fail by default. PiperOrigin-RevId: 286408038
-
- 13 Dec, 2019 1 commit
-
-
Abseil Team authored
Detect when C++ parametric tests (TEST_P) are not instantiated. When an un-instantiated TEST_P is found, a new test will be inserted that will emit a warning message. This can be made to error with minor code edits. In the future, that is intended to be the default. PiperOrigin-RevId: 284901666
-
- 06 Dec, 2019 1 commit
-
-
Abseil Team authored
Change googletest to notice failures during SetUpTestSuite() and TearDownTestSuite(). Previously, errors that occurred during those functions were logged but otherwise ignored. After this change, such failures will cause the test to fail and a brief summary will be printed at the bottom of the test log. See https://github.com/google/googletest/issues/2330. PiperOrigin-RevId: 284033342
-
- 22 Nov, 2019 1 commit
-
-
Abseil Team authored
Use standard C++11 integer types in gtest-port.h. Remove testing::internal::{Int,Uint}{32,64} in favor of types guaranteed to be in <cstdint> since C++11. Tests for built-in integer type coverage are switched from {Int,Uint}64 to [unsigned] long long, which is guaranteed by C++11 to exist and be at least 64-bit wide. PiperOrigin-RevId: 281565263
-
- 24 Oct, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 18 Oct, 2019 1 commit
-
-
Sinclair-John authored
-
- 17 Oct, 2019 1 commit
-
-
Alexey Spiridonov authored
Closes #2208 Previously, skip messages were invisible, so debugging skips was hard. Now we have this: ``` $ ./googletest/gtest_skip_test Running main() from /home/lesha/github/snarkmaster/googletest/googletest/src/gtest_main.cc [==========] Running 3 tests from 2 test suites. [----------] Global test environment set-up. [----------] 1 test from SkipTest [ RUN ] SkipTest.DoesSkip /home/lesha/github/snarkmaster/googletest/googletest/test/gtest_skip_test.cc:38: Skipped skipping single test [ SKIPPED ] SkipTest.DoesSkip (0 ms) [----------] 1 test from SkipTest (1 ms total) ... ```
-
- 11 Oct, 2019 1 commit
-
-
Chris Johnson authored
Added support for ESP8266 Arduino platform. Refactored Arduino defines to use the GTEST_OS_* model.
-
- 06 Sep, 2019 1 commit
-
-
Abseil Team authored
Extend gtest-port and stubs for ESP_PLATFORM ESP_PLATFORM is the macro used to indicate compilation for the ESP32 using the esp-idf. This isn't a fully posix compatible system so various features of google test need to be stubbed out in order for it to work. It's oddly similar to the GTEST_OS_WINDOWS_PHONE setup. PiperOrigin-RevId: 267471968
-
- 20 Aug, 2019 1 commit
-
-
Krystian Kuzniarek authored
Due to confusion arisen from "iff" standing for "if and only if", this commit uses the latter.
-
- 06 Aug, 2019 1 commit
-
-
Antoine Pitrou authored
-
- 01 Aug, 2019 2 commits
-
-
Abseil Team authored
Fix signed conversion warning for wchar_t -> wint_t. Fixes Github issue #2300 PiperOrigin-RevId: 261045497
-
misterg authored
Internal Change PiperOrigin-RevId: 260939845
-
- 30 Jul, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 26 Jul, 2019 1 commit
-
-
Abseil Team authored
Adds ISO8601 timestamps to XML output and RFC3339 timestamps to JSON output. Adds timestamps to testsuites, testsuite and testcases structured JSON/XML output for better reporting how/where time is spent on tests. PiperOrigin-RevId: 260039817
-
- 22 May, 2019 1 commit
-
-
Lingfeng Yang authored
windows msvc toolchain with werror and wconversion will break if converting long to DWORD.
-
- 18 Apr, 2019 1 commit
-
-
misterg authored
Fixes https://github.com/google/googletest/issues/2232 PiperOrigin-RevId: 244237560
-
- 06 Apr, 2019 1 commit
-
-
Enji Cooper authored
Cast some values as their unsigned equivalents or `size_t` to match the parameter type used for the template object under test. Also, provide UInt32 equivalent delegate methods for some callers (with int-equivalents for backwards compatibility). This closes #2146. Signed-off-by:Enji Cooper <yaneurabeya@gmail.com>
-
- 01 Apr, 2019 1 commit
-
-
Abseil Team authored
Remove support for "global" ::string and ::wstring types. This support existed for legacy codebases that existed from before namespaces where a thing. It is no longer necessary. PiperOrigin-RevId: 241335738
-
- 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 1 commit
-
-
Abseil Team authored
Update XML and JSON output to be consistent with the standard. PiperOrigin-RevId: 239833242
-
- 05 Mar, 2019 1 commit
-
-
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
-
- 11 Feb, 2019 1 commit
-
-
Jonathan Wakely authored
If the object was never created then trying to call &Test::DeleteSelf_ will dereference a null pointer, with undefined behaviour. Fixes #845
-
- 03 Jan, 2019 1 commit
-
-
misterg authored
TestCase->TestSuite refactoring PiperOrigin-RevId: 227702164
-
- 02 Jan, 2019 1 commit
-
-
misterg authored
Internal Change PiperOrigin-RevId: 227575279
-