Repository navigation
Commit b67e102
committed
test: mitigate MSVC C4702 in test_safecrt.h and workaround MSVC 2005 tmpfile_s bug
- Replaced SKIP() with direct return GREATEST_TEST_RES_SKIP in test_safecrt.h
to bypass C4702 (unreachable code) warnings caused by the macro expansion
under strict compiler settings.
- Added a fallback condition in test_tmpfile_s to gracefully skip the test
if the platform's tmpfile_s succeeds but sets the file pointer to NULL,
a known bug on older MSVC/Windows environments.1 parent e46fc73 commit b67e102
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
210 | 217 | | |
211 | 218 | | |
212 | 219 | | |
| |||
302 | 309 | | |
303 | 310 | | |
304 | 311 | | |
305 | | - | |
| 312 | + | |
| 313 | + | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
| |||
0 commit comments