Commit 33ae023
TASK-020: flip header-hygiene gates to strict mode (TDD red)
Removes test/Makefile.am's `XFAIL_TESTS = header_hygiene` line and
flips Makefile.am's `HEADER_HYGIENE_STRICT` default from `no` to `yes`.
Both gates were intentionally informational while M2-M5 were in flight.
Now that the structural pieces are in place, this commit makes the
gates fatal so the umbrella sweep produces a real red->green TDD cycle:
$ make check -> FAIL: header_hygiene (3 forbidden header guards
defined: MHD_VERSION, _PTHREAD_H, _SYS_SOCKET_H_)
$ make check-hygiene -> FAIL: forbidden headers leaked through
<httpserver.hpp> (microhttpd.h, sys/socket.h,
pthread.h, plus libc++ STL transitive)
Subsequent commits in this task remove the leaks at the source.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a97f06d commit 33ae023
2 files changed
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
| |||
0 commit comments