summaryrefslogtreecommitdiff
path: root/src/gtest-death-test.cc
Commit message (Collapse)AuthorAge
* Removes testing::internal::String::Format(), which causes problems as it ↵kosak@google.com2013-02-22
| | | | | | truncates the result at 4096 chars. Also update an obsolete link in comment. git-svn-id: http://googletest.googlecode.com/svn/trunk@636 861a406c-534a-0410-8894-cb66d6ee9925
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm@google.com2012-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: http://googletest.googlecode.com/svn/trunk@628 861a406c-534a-0410-8894-cb66d6ee9925
* fixes a problem in which we pass the address one byte ↵jgm@google.com2012-07-12
| | | | | | | | | | ~/svn/googletest/trunk after the end of stack space in a call to clone(). According to Linux's man page on clone(), the 'stack' parameter usually points to the topmost address of the memory space set up for the child stack. The existing code points one byte after the end git-svn-id: http://googletest.googlecode.com/svn/trunk@618 861a406c-534a-0410-8894-cb66d6ee9925
* Improves conformance to the Google C++ Style Guide (by Greg Miller).vladlosev2011-11-04
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@607 861a406c-534a-0410-8894-cb66d6ee9925
* Adds support for detection of running in death test child processes.vladlosev2011-10-28
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@606 861a406c-534a-0410-8894-cb66d6ee9925
* Adds ability to inject death test child arguments for test purposes.vladlosev2011-10-05
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@599 861a406c-534a-0410-8894-cb66d6ee9925
* Ignore SIGPROF signal during clone()/fork() call. clone()/fork() call hangs ↵vladlosev2011-09-09
| | | | | | permanently if it consumes more cpu than the SIGPROF signal timer interval (by Nabeel Mian). git-svn-id: http://googletest.googlecode.com/svn/trunk@592 861a406c-534a-0410-8894-cb66d6ee9925
* QNX compatibility patch (by Haruka Iwao).vladlosev2011-06-20
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@586 861a406c-534a-0410-8894-cb66d6ee9925
* Suppresses the tail-call optimization of StackGrowsDown() in GCC4.6 (by Paul ↵vladlosev2011-06-13
| | | | | | Pluzhnikov). git-svn-id: http://googletest.googlecode.com/svn/trunk@585 861a406c-534a-0410-8894-cb66d6ee9925
* fixes a problem caused by gcc 4.6 optimization (by Paul Pluzhnikov)zhanyong.wan2011-04-14
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@571 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes Windows CE compatibility problem (issue ↵vladlosev2011-03-30
| | | | | | http://code.google.com/p/googletest/issues/detail?id=362). git-svn-id: http://googletest.googlecode.com/svn/trunk@559 861a406c-534a-0410-8894-cb66d6ee9925
* Indents preprocessor directives.zhanyong.wan2011-02-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@544 861a406c-534a-0410-8894-cb66d6ee9925
* Add markers to death test messages to make them more recogizable (by Jeff ↵zhanyong.wan2011-02-02
| | | | | | Shute). git-svn-id: http://googletest.googlecode.com/svn/trunk@539 861a406c-534a-0410-8894-cb66d6ee9925
* Modifies handling of C++ exceptions in death tests to treat exceptions ↵vladlosev2010-10-18
| | | | | | escaping them as failures. git-svn-id: http://googletest.googlecode.com/svn/trunk@500 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest wokr on MinGW (by Vlad Losev); removes unused ↵zhanyong.wan2010-10-11
| | | | | | linked_ptr::release() method (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@492 861a406c-534a-0410-8894-cb66d6ee9925
* Include gtest headers as user headers instead of system headers.zhanyong.wan2010-09-14
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@482 861a406c-534a-0410-8894-cb66d6ee9925
* Improves support for building Google Test as Windows DLL.vladlosev2010-05-05
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@423 861a406c-534a-0410-8894-cb66d6ee9925
* Renames ThreadStartSempahore to Notificaton (by Vlad Losev); adds threading ↵zhanyong.wan2010-03-04
| | | | | | tests for SCOPED_TRACE() (by Vlad Losev); replaces native pthread calls with gtest's threading constructs (by Vlad Losev); fixes flakiness in CountedDestructor (by Vlad Losev); minor MSVC 7.1 clean-up (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@386 861a406c-534a-0410-8894-cb66d6ee9925
* Turns on -Wshadow (by Preston Jackson).zhanyong.wan2009-12-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@350 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest compile cleanly with MSVC's /W4 (by Zhanyong Wan).zhanyong.wan2009-09-30
| | | | | | | | | Renames EventListenrs to TestEventListeners (by Zhanyong Wan). Fixes invalid characters in XML report (by Vlad Losev). Refacotrs SConscript (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@321 861a406c-534a-0410-8894-cb66d6ee9925
* Small code simplification (by Vlad Losev).zhanyong.wan2009-09-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@308 861a406c-534a-0410-8894-cb66d6ee9925
* Simplifies the implementation of GTEST_LOG_ & GTEST_LOG_; renameszhanyong.wan2009-09-16
| | | | | | | | GTEST_HIDE_UNREACHABLE_CODE_ to GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@307 861a406c-534a-0410-8894-cb66d6ee9925
* More implementation of the event listener interface (by Vlad Losev); Reduces ↵zhanyong.wan2009-09-04
| | | | | | the stack space usage of assertions by moving AssertHelper's fields to the heap (by Jorg Brown); Makes String faster, smaller, and simpler (by Zhanyong Wan); Fixes a bug in String::Format() (by Chandler); Adds the /MD version of VC projects to the distribution (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@301 861a406c-534a-0410-8894-cb66d6ee9925
* Implements EXPECT_DEATH_IF_SUPPORTED (by Vlad Losev); Fixes compatibility ↵zhanyong.wan2009-08-07
| | | | | | with Symbian (by Araceli Checa); Removes GetCapturedStderr()'s dependency on std::string (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@289 861a406c-534a-0410-8894-cb66d6ee9925
* Renames the POSIX wrappers (by Zhanyong Wan) and adds more targets to ↵zhanyong.wan2009-04-24
| | | | | | SConscript (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@242 861a406c-534a-0410-8894-cb66d6ee9925
* Works around a VC bug by avoiding defining a function named strdup().zhanyong.wan2009-03-26
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@228 861a406c-534a-0410-8894-cb66d6ee9925
* Simplifies implementation by defining a POSIX portability layer; adds the ↵zhanyong.wan2009-03-26
| | | | | | death test style flag to --help. git-svn-id: http://googletest.googlecode.com/svn/trunk@227 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest compile without warning with gcc 4.0.3 and -Wall -Wextra.zhanyong.wan2009-03-25
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@226 861a406c-534a-0410-8894-cb66d6ee9925
* Cleans up death test implementation (by Vlad Losev); changes the XML format ↵zhanyong.wan2009-03-24
| | | | | | to be closer to junitreport (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@224 861a406c-534a-0410-8894-cb66d6ee9925
* Enables death tests on Cygwin and Mac (by Vlad Losev); fixes a python test ↵zhanyong.wan2009-03-17
| | | | | | on Mac. git-svn-id: http://googletest.googlecode.com/svn/trunk@207 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes a typo in Vlad's email address.zhanyong.wan2009-03-11
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@206 861a406c-534a-0410-8894-cb66d6ee9925
* Implements death tests on Windows (by Vlad Losev); enables POSIX regex on ↵zhanyong.wan2009-03-06
| | | | | | Mac and Cygwin; fixes build issue on some Linux versions due to PATH_MAX. git-svn-id: http://googletest.googlecode.com/svn/trunk@198 861a406c-534a-0410-8894-cb66d6ee9925
* Cleans up macro definitions.zhanyong.wan2009-02-23
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@195 861a406c-534a-0410-8894-cb66d6ee9925
* Implements the --gtest_death_test_use_fork flag and StaticAssertTypeEq.shiqian2009-01-08
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@170 861a406c-534a-0410-8894-cb66d6ee9925
* Many changes:shiqian2008-10-11
| | | | | | | | | | | | | | | - 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@104 861a406c-534a-0410-8894-cb66d6ee9925
* Lots of changes:shiqian2008-09-26
| | | | | | | | | | | * changes the XML report format to match JUnit/Ant's. * improves file path handling. * allows the user to disable RTTI using the GTEST_HAS_RTTI macro. * makes the code compile with -Wswitch-enum. git-svn-id: http://googletest.googlecode.com/svn/trunk@98 861a406c-534a-0410-8894-cb66d6ee9925
* Improves thread-safe death tests by changing to the original working ↵shiqian2008-09-12
| | | | | | directory before they are executed; also fixes out-dated comments about death tests. git-svn-id: http://googletest.googlecode.com/svn/trunk@88 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest work on Windows Mobile and Symbian. By Mika Raento.shiqian2008-07-31
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@73 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes some style nits; also fixes minor bugs in gtest-death-test.cc.shiqian2008-07-23
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@65 861a406c-534a-0410-8894-cb66d6ee9925
* Initial import.shiqian2008-07-03
git-svn-id: http://googletest.googlecode.com/svn/trunk@40 861a406c-534a-0410-8894-cb66d6ee9925