Adds an "exception thrown" fatal failure to the current test. This function returns its result via an output parameter pointer because VC++ prohibits creation of objects with destructors on stack in functions using __try (see error C2712).
| 3809 | // prohibits creation of objects with destructors on stack in functions |
| 3810 | // using __try (see error C2712). |
| 3811 | static std::string* FormatSehExceptionMessage(DWORD exception_code, |
| 3812 | const char* location) { |
| 3813 | Message message; |
| 3814 | message << "SEH exception with code 0x" << std::setbase(16) << |
| 3815 | exception_code << std::setbase(10) << " thrown in " << location << "."; |
| 3816 | |
| 3817 | return new std::string(message.GetString()); |
| 3818 | } |
| 3819 | |
| 3820 | #endif // GTEST_HAS_SEH |
| 3821 |
no test coverage detected