Repository navigation
Commit 964eed9
committed
[TEST] Bound the curl cases, and check the layout claim instead of asserting it
Two things this branch said but did not enforce.
The cases here cover waits that are meant to end. When one stops ending
it hangs rather than fails, and nothing bounded them, so a regression
took the whole job with it instead of reporting. That happened three
times while this branch was being written, each time as exit 124 with no
case after it running. Every curl case now carries a CTest timeout of
120 seconds, read back from ctest --show-only=json-v1 as 120.0 on all
35. The slowest case that legitimately waits takes thirty.
The description also claimed that std::atomic<SessionState> is one byte,
aligned to one, and lock free, so the installed layout does not move.
That was a measurement on one toolchain stated as a property of the
language. The standard promises none of it. The size and alignment
halves are now static_asserts, so a toolchain where they do not hold
says so while building rather than silently changing an installed type.
32 tests pass.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent e7c9427 commit 964eed9
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
404 | 416 | | |
405 | 417 | | |
406 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
0 commit comments