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).
| 3319 | // prohibits creation of objects with destructors on stack in functions |
| 3320 | // using __try (see error C2712). |
| 3321 | static internal::String* FormatSehExceptionMessage(DWORD exception_code, |
| 3322 | const char* location) { |
| 3323 | Message message; |
| 3324 | message << "SEH exception with code 0x" << std::setbase(16) << |
| 3325 | exception_code << std::setbase(10) << " thrown in " << location << "."; |
| 3326 | |
| 3327 | return new internal::String(message.GetString()); |
| 3328 | } |
| 3329 | |
| 3330 | #endif // GTEST_HAS_SEH |
| 3331 |
no outgoing calls
no test coverage detected