Commit a5b71cd
committed
[#1384] Preserve BSK logging C-wrapper test catch on MSVC
Route the _bskError C-wrapper test through a volatile C++ function
pointer on MSVC. MSVC builds use /EHc, which allows the compiler to
assume extern "C" calls do not throw; that caused the BasiliskError from
_bskError to bypass the local typed catch and escape to GoogleTest even
though the error message was correct.
Keep the normal test path unchanged for other compilers while preserving
coverage that _bskError treats preformatted text as a literal message.1 parent 981a981 commit a5b71cd
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
0 commit comments