Commit e6d7dcc
CI: fix pre-existing Windows MSYS+MINGW64 build failures
These two jobs were red on master→feature/v2.0 before the recent
lint/tsan fixes too, but the previous failures were masking them.
Now that the green path runs further, they need attention.
1. msys2 MINGW64 (check-readme): the byte-for-byte diff of README's
first ```cpp fence vs examples/hello_world.cpp failed because git
for Windows checked out README.md with CRLF and the .cpp with LF
(autocrlf=true). Strip \r from both sides before diffing — the
intent of the gate is content equality, not line-ending equality.
2. msys2 MSYS (threadsafety_stress.cpp): the file unconditionally
included <sys/wait.h>/<unistd.h> and used fork()/waitpid() for
the opt-in stop_from_handler subtest (DR-008 wedge containment).
Guard the POSIX includes and subtest body behind #ifndef _WIN32,
and have the subtest print [SKIP] on Windows. The subtest is
already opt-in via HTTPSERVER_RUN_STOP_FROM_HANDLER=1; the POSIX
CI lanes still exercise it. Windows just builds now.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent eb2869a commit e6d7dcc
2 files changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | | - | |
| 68 | + | |
64 | 69 | | |
65 | | - | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
280 | 290 | | |
281 | 291 | | |
282 | 292 | | |
| |||
368 | 378 | | |
369 | 379 | | |
370 | 380 | | |
| 381 | + | |
371 | 382 | | |
372 | 383 | | |
373 | 384 | | |
| |||
0 commit comments