aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2805 from pepsiman:patch-1Mark Barolak2020-04-161-1/+1
|\ | | | | | | PiperOrigin-RevId: 306462650
| * Remove redundant .c_str()Malcolm Parsons2020-04-091-1/+1
| |
* | fix signed/unsigned comparison issue (on OpenBSD)Juergen Bohl2020-04-121-1/+1
|/
* Googletest exportAbseil Team2020-03-242-25/+109
| | | | | | | | | | 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
* Googletest exportAbseil Team2020-03-171-0/+4
| | | | | | Move internal function out of header because Hyrum's law always wins. PiperOrigin-RevId: 301446904
* Googletest exportAbseil Team2020-03-171-5/+1
| | | | | | Simplify the fallback printing logic to have a single sequence of trial printers. PiperOrigin-RevId: 298621376
* Merge pull request #2722 from JohanMabille:warningsvslashg2020-03-171-1/+1
|\ | | | | | | PiperOrigin-RevId: 298608772
| * Fixed warningsJohan Mabille2020-02-211-1/+1
| |
* | Googletest exportAbseil Team2020-02-281-46/+49
| | | | | | | | | | | | | | Rename internal color enumerators to avoid conflicts with curses.h macro definitions. Fixes #2685 PiperOrigin-RevId: 297639382
* | Googletest exportAbseil Team2020-02-111-14/+14
| | | | | | | | | | | | Add gmock Matcher<std::string_view> specialization. PiperOrigin-RevId: 294443240
* | Googletest exportAbseil Team2020-01-211-4/+17
| | | | | | | | | | | | 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
* | Googletest exportAbseil Team2020-01-161-2/+3
| | | | | | | | | | | | Correct the spelling of PARAMETERIZED. PiperOrigin-RevId: 289897278
* | Googletest exportAbseil Team2020-01-161-1/+8
| | | | | | | | | | | | Wire up things to support marking a type paramaterized test as allowed to be un-instantiated. PiperOrigin-RevId: 289699939
* | Googletest exportAbseil Team2020-01-162-1/+26
| | | | | | | | | | | | | | | | | | | | 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
* | Googletest exportAbseil Team2020-01-161-1/+5
| | | | | | | | | | | | Change testing::TempDir() return value for Android PiperOrigin-RevId: 289102017
* | Googletest exportAbseil Team2020-01-023-1/+72
| | | | | | | | | | | | | | | | 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
* | Googletest exportAbseil Team2019-12-131-0/+60
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #2609 from kuzkry:revert-2596Mark Barolak2019-12-061-8/+3
|\ \ | | | | | | | | | PiperOrigin-RevId: 284041013
| * | Revert "unify googletest and googlemock main functions"Krystian Kuzniarek2019-11-271-8/+3
| | | | | | | | | | | | This reverts commit a909becdc599c46bcb57346b6123cb57cd07d15d.
* | | Googletest exportAbseil Team2019-12-061-10/+29
|/ / | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #2596 from kuzkry:remove-workaround_msvc-wmain-link-errorGennadiy Rozental2019-11-261-3/+8
|\ \ | | | | | | | | | PiperOrigin-RevId: 282589492
| * | unify googletest and googlemock main functionsKrystian Kuzniarek2019-11-221-3/+8
| | |
* | | Merge pull request #2570 from xieyubo:1.10Gennadiy Civil2019-11-221-0/+3
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 281971090
| * | | Fix internal memory leak in Windows _Crt report.xyb2019-11-161-0/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use "MemoryIsNotDeallocated" to aovid internal expected leak reported in Windows _Crt report, like: { #ifdef _MSC_VER MemoryIsNotDeallocated memory_is_not_deeallocated; #endif static ThreadIdToThreadLocals* map = new ThreadIdToThreadLocals(); return map; } But int the above code, only "new ThreadIdToThreadLocals()" is protected, if we invoke "insert()" function of the return value, the memory allocated in "insert()" will be reported to _Crt report also. This change try to fix this issue.
* | | Googletest exportAbseil Team2019-11-223-61/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #2521 from Sinclair-John:masterAndy Getz2019-11-151-1/+4
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 280666222
| * | | Fix Issue 2418Sinclair-John2019-10-181-1/+4
| | | |
* | | | Googletest exportAbseil Team2019-11-081-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clone+exec death test allocates a single page of stack to run chdir + exec on. This is not enough when gtest is built with ASan and run on particular hardware. With ASan on x86_64, ExecDeathTestChildMain has frame size of 1728 bytes. Call to chdir() in ExecDeathTestChildMain ends up in _dl_runtime_resolve_xsavec, which attempts to save register state on the stack; according to cpuid(0xd) XSAVE register save area size is 2568 on my machine. This results in something like this in all death tests: Result: died but not with expected error. ... [ DEATH ] AddressSanitizer:DEADLYSIGNAL [ DEATH ] ================================================================= [ DEATH ] ==178637==ERROR: AddressSanitizer: stack-overflow on address ... PiperOrigin-RevId: 278709790
* | | Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntXiaoyi Zhang2019-11-041-15/+16
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 278008286
* | | | Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntvslashg2019-11-011-16/+15
|\| | | | | | | | | | | | | | | PiperOrigin-RevId: 277979766
| * | | remove BiggestIntKrystian Kuzniarek2019-10-241-4/+4
| | | |
* | | | Merge pull request #2515 from ciband:feat/support_esp8266vslashg2019-10-253-2/+14
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 276333426
| * | | | Add ESP8266 configs to PlatformIO buildChris Johnson2019-10-112-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Added various conditional compliations for ESP8266 to stub out missing functionality.
| * | | | feat: Add support for ESP8266 platformChris Johnson2019-10-113-2/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | Added support for ESP8266 Arduino platform. Refactored Arduino defines to use the GTEST_OS_* model.
* / | | [googletest] Output skip messageAlexey Spiridonov2019-10-171-3/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) ... ```
* | | Merge pull request #2497 from thejcannon:handle_null_filenameGennadiy Civil2019-10-101-1/+5
|\ \ \ | |_|/ |/| | | | | PiperOrigin-RevId: 273585229
| * | Use FormatFileLocation for streaming file and lineJoshua Cannon2019-10-071-1/+2
|/ /
* | Googletest exportAbseil Team2019-09-271-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a more portable path for Android to write temp files to. /sdcard is *not* guaranteed to be available, but /data/local/tmp is. In some emulated situations, /sdcard may not be mounted, may not be R/W, or mounting may be delayed until *after* the test process begins. This is fairly common location to use. See e.g.: https://reviews.llvm.org/D9569 PiperOrigin-RevId: 270909282
* | Merge pull request #2387 from kuzkry:iffShaindel Schwartz2019-09-124-116/+113
|\ \ | |/ |/| | | PiperOrigin-RevId: 268693457
| * restore mistakenly removed iffs in their explicit formKrystian Kuzniarek2019-08-204-95/+100
| | | | | | | | | | Due to confusion arisen from "iff" standing for "if and only if", this commit uses the latter.
* | Googletest exportAbseil Team2019-09-062-3/+3
|/ | | | | | | | | | | 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
* Fix #2371: Redirect Windows CRT assertions to stderrAntoine Pitrou2019-08-061-5/+15
|
* Googletest exportAbseil Team2019-08-011-2/+2
| | | | | | | Fix signed conversion warning for wchar_t -> wint_t. Fixes Github issue #2300 PiperOrigin-RevId: 261045497
* Googletest exportmisterg2019-08-011-9/+49
| | | | | | Internal Change PiperOrigin-RevId: 260939845
* fix typosKrystian Kuzniarek2019-07-304-61/+61
|
* Googletest exportAbseil Team2019-07-251-17/+24
| | | | | | | | 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
* Googletest exportAbseil Team2019-07-161-24/+34
| | | | | | | | | [Fuchsia] Update exception APIs used by death test. Migrates to the new channel-based exception APIs as the port APIs are deprecated and will be removed. PiperOrigin-RevId: 258175830
* Googletest exportAbseil Team2019-06-051-1/+1
| | | | | | fdio_pipe_half is now the same as fdio_pipe_half2. We can switch back to the cleaner name. PiperOrigin-RevId: 251633832
* Googletest exportAbseil Team2019-05-291-0/+9
| | | | | | Add a safety nullptr check to catch the case where the /tmp file used for capturing a stream cannot be created. PiperOrigin-RevId: 250523012
* unbreak windows buildLingfeng Yang2019-05-221-1/+1
| | | | | windows msvc toolchain with werror and wconversion will break if converting long to DWORD.