aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest-death-test_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move everything in googletest into googletest/googletestBilly Donahue2015-08-251-1427/+0
|
* Control death test with an #ifdef guard.kosak2015-07-141-0/+4
|
* Work around some unsigned->signed warnings in our tests/.kosak2015-04-281-12/+12
| | | | Thanks to Diego Barrios Romero <eldruin@gmail.com>.
* Push upstream to SVN.billydonahue2014-05-151-40/+30
|
* Implement threading support for gtest on Windows.kosak2014-03-241-1/+67
| | | | Also, stop using localtime(). Instead, use localtime_r() on most systems, localtime_s() on Windows.
* avoids clash with the max() macro on Windowszhanyong.wan2013-09-181-7/+5
|
* makes gtest-death-test_test.cc compile on platforms that don't support death ↵zhanyong.wan2013-07-081-20/+21
| | | | tests; h/t to Steve Robbins for reporting the issue and suggesting the fix.
* Fixes unused function warning on Mac, and fixes compatibility with newer GCC.zhanyong.wan2013-02-281-2/+2
|
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes that haven't made it to svn. The descriptions of each change are listed below. - Fixes some python shebang lines. - Add ElementsAreArray overloads to gmock. ElementsAreArray now makes a copy of its input elements before the conversion to a Matcher. ElementsAreArray can now take a vector as input. ElementsAreArray can now take an iterator pair as input. - Templatize MatchAndExplain to allow independent string types for the matcher and matchee. I also templatized the ConstCharPointer version of MatchAndExplain to avoid calls with "char*" from using the new templated MatchAndExplain. - Fixes the bug where the constructor of the return type of ElementsAre() saves a reference instead of a copy of the arguments. - Extends ElementsAre() to accept arrays whose sizes aren't known. - Switches gTest's internal FilePath class from testing::internal::String to std::string. testing::internal::String was introduced when gTest couldn't depend on std::string. It's now deprecated. - Switches gTest & gMock from using testing::internal::String objects to std::string. Some static methods of String are still in use. We may be able to remove some but not all of them. In particular, String::Format() should eventually be removed as it truncates the result at 4096 characters, often causing problems.
* Misc small updates to some debug death code, and to messages streaming to macrosjgm2012-03-091-18/+14
|
* Improves conformance to the Google C++ Style Guide (by Greg Miller).vladlosev2011-11-041-0/+1
|
* Adds support for detection of running in death test child processes.vladlosev2011-10-281-0/+21
|
* Fixes test failure on 32-bit Ubuntu.vladlosev2011-10-051-1/+2
|
* Ignore SIGPROF signal during clone()/fork() call. clone()/fork() call hangs ↵vladlosev2011-09-091-0/+55
| | | | permanently if it consumes more cpu than the SIGPROF signal timer interval (by Nabeel Mian).
* Indents preprocessor directives.zhanyong.wan2011-02-221-55/+73
|
* Add markers to death test messages to make them more recogizable (by Jeff ↵zhanyong.wan2011-02-021-3/+59
| | | | Shute).
* Modifies handling of C++ exceptions in death tests to treat exceptions ↵vladlosev2010-10-181-2/+5
| | | | escaping them as failures.
* Makes gtest wokr on MinGW (by Vlad Losev); removes unused ↵zhanyong.wan2010-10-111-1/+1
| | | | linked_ptr::release() method (by Zhanyong Wan).
* Include gtest headers as user headers instead of system headers.zhanyong.wan2010-09-141-4/+4
|
* Makes gtest print enums as integers instead of hex dumps (by Zhanyong Wan); ↵zhanyong.wan2010-08-091-11/+0
| | | | improves the hex dump format (by Zhanyong Wan); gets rid of class TestInfoImpl (by Zhanyong Wan); adds exception handling (by Vlad Losev).
* Fixes an 'unreachable code' warning by MSVC on certain opt settings in ↵vladlosev2010-03-081-1/+6
| | | | gtest-death-test_test.cc.
* Modifies gtest-death-test_test not to use core-dumping API calls.vladlosev2010-03-021-28/+25
|
* Adds threading support (by Miklos Fazekas, Vlad Losev, and Chandler ↵zhanyong.wan2010-02-241-2/+2
| | | | Carruth); adds wide InitGoogleTest to gtest.def (by Vlad Losev); updates the version number (by Zhanyong Wan); updates the release notes for 1.5.0 (by Vlad Losev); removes scons scripts from the distribution (by Zhanyong Wan); adds the cmake build script to the distribution (by Zhanyong Wan); adds fused source files to the distribution (by Vlad Losev and Chandler Carruth).
* Adds support for alternate path separator on Windows, and make all tests ↵zhanyong.wan2010-02-021-18/+0
| | | | pass with CMake and VC++ 9 (by Manuel Klimek).
* Removes uses of GTEST_HAS_STD_STRING.zhanyong.wan2009-12-161-2/+0
|
* Implements test shuffling (by Zhanyong Wan, based on Josh Kelley's original ↵zhanyong.wan2009-09-301-1/+7
| | | | | | patch). Enables death tests on minGW (by Vlad Losev).
* Makes gtest compile cleanly with MSVC's /W4 (by Zhanyong Wan).zhanyong.wan2009-09-301-8/+11
| | | | | | Renames EventListenrs to TestEventListeners (by Zhanyong Wan). Fixes invalid characters in XML report (by Vlad Losev). Refacotrs SConscript (by Vlad Losev).
* Makes gtest compile clean with MSVC's warning 4100 (unused formal parameter) ↵zhanyong.wan2009-09-171-3/+4
| | | | enabled.
* Simplifies the implementation of GTEST_LOG_ & GTEST_LOG_; renameszhanyong.wan2009-09-161-6/+6
| | | | | GTEST_HIDE_UNREACHABLE_CODE_ to GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ (by Vlad Losev).
* Improves EXPECT_DEATH_IF_SUPPORTED to allow streaming of messages and ↵zhanyong.wan2009-09-111-2/+75
| | | | enforcing the validity of arguments (by Vlad Losev); adds samples for the event listener API (by Vlad Losev); simplifies the tests using EXPECT_DEATH_IF_SUPPORTED (by Zhanyong Wan).
* Enables String to contain NUL (by Zhanyong Wan); Adds scons scripts (by Vlad ↵zhanyong.wan2009-09-011-3/+3
| | | | Losev).
* Implements EXPECT_DEATH_IF_SUPPORTED (by Vlad Losev); Fixes compatibility ↵zhanyong.wan2009-08-071-0/+38
| | | | with Symbian (by Araceli Checa); Removes GetCapturedStderr()'s dependency on std::string (by Vlad Losev).
* Makes gtest compile clean with gcc -Wall -Werror (by Zhanyong Wan); ↵zhanyong.wan2009-07-221-3/+3
| | | | refactors scons script (by Vlad Losev).
* More refactoring for the event listener API, by Vlad Losev.zhanyong.wan2009-07-161-6/+1
|
* Refactors for the event listener API (by Vlad Losev): hides some methods in ↵zhanyong.wan2009-06-251-11/+10
| | | | UnitTest; implements the result printers using the public API.
* Renames the POSIX wrappers (by Zhanyong Wan) and adds more targets to ↵zhanyong.wan2009-04-241-2/+2
| | | | SConscript (by Vlad Losev).
* Simplifies implementation by defining a POSIX portability layer; adds the ↵zhanyong.wan2009-03-261-13/+4
| | | | death test style flag to --help.
* Cleans up death test implementation (by Vlad Losev); changes the XML format ↵zhanyong.wan2009-03-241-12/+5
| | | | to be closer to junitreport (by Zhanyong Wan).
* Enables death tests on Cygwin and Mac (by Vlad Losev); fixes a python test ↵zhanyong.wan2009-03-171-2/+3
| | | | on Mac.
* Implements the --help flag; fixes tests on Windows.zhanyong.wan2009-03-111-0/+13
|
* Fixes death-test-related tests on Windows, by Vlad Losev.zhanyong.wan2009-03-111-3/+6
|
* Implements death tests on Windows (by Vlad Losev); enables POSIX regex on ↵zhanyong.wan2009-03-061-9/+259
| | | | Mac and Cygwin; fixes build issue on some Linux versions due to PATH_MAX.
* Cleans up macro definitions.zhanyong.wan2009-02-231-3/+3
|
* Implements the --gtest_death_test_use_fork flag and StaticAssertTypeEq.shiqian2009-01-081-6/+17
|
* Many changes:shiqian2008-10-111-7/+7
| | | | | | | | | | | | - appends "_" to internal macro names (by Markus Heule). - makes Google Test work with newer versions of tools on Symbian and Windows CE (by Mika Raento). - adds the (ASSERT|EXPECT)_NO_FATAL_FAILURE macros (by Markus Heule). - changes EXPECT_(NON|)FATAL_FAILURE to catch failures in the current thread only (by Markus Heule). - adds the EXPECT_(NON|)FATAL_FAILURE_ON_ALL_THREADS macros (by Markus Heule). - adds GTEST_HAS_PTHREAD and GTEST_IS_THREADSAFE to indicate the availability of <pthread.h> and Google Test's thread-safety (by Zhanyong Wan). - adds scons/SConscript for building with scons (by Joi Sigurdsson). - adds src/gtest-all.cc for building Google Test from a single file (by Markus Heule). - updates the xcode project to include new tests (by Preston Jackson).
* Improves thread-safe death tests by changing to the original working ↵shiqian2008-09-121-28/+62
| | | | directory before they are executed; also fixes out-dated comments about death tests.
* Fixes the definition of GTEST_ATTRIBUTE_UNUSED and make the tests pass in ↵shiqian2008-08-011-27/+2
| | | | opt mode.
* Initial import.shiqian2008-07-031-0/+862