| Index: src/client/windows/unittests/exception_handler_death_test.cc
|
| ===================================================================
|
| --- src/client/windows/unittests/exception_handler_death_test.cc (revision 592)
|
| +++ src/client/windows/unittests/exception_handler_death_test.cc (working copy)
|
| @@ -163,4 +163,19 @@
|
| ASSERT_DEATH(this->DoCrash(), "");
|
| EXPECT_TRUE(gDumpCallbackCalled);
|
| }
|
| +
|
| +TEST_F(ExceptionHandlerDeathTest, InvalidParameterTest) {
|
| + using google_breakpad::ExceptionHandler;
|
| +
|
| + ASSERT_TRUE(DoesPathExist(temp_path_));
|
| + ExceptionHandler handler(temp_path_, NULL, NULL, NULL,
|
| + ExceptionHandler::HANDLER_INVALID_PARAMETER);
|
| +
|
| + // Disable the message box for assertions
|
| + _CrtSetReportMode(_CRT_ASSERT, 0);
|
| +
|
| + // Call with a bad argument. The invalid parameter will be swallowed
|
| + // and a dump will be generated, the process will exit(0).
|
| + ASSERT_EXIT(printf(NULL), ::testing::ExitedWithCode(0), "");
|
| }
|
| +}
|
|
|