feat(libxce-alloc-preason-equality): recorded dispatch fixtures carry the session-start from (task 4.2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6110d12e5a
commit
69112c2d22
7 changed files with 137 additions and 60 deletions
|
|
@ -53,7 +53,7 @@ Test-first throughout (red → green → refactor). Every sub-task leaves the bu
|
|||
- Done when the three tests pass unchanged in outcome under the stricter checks; a failure is investigated as a real divergence, not loosened.
|
||||
- _Requirements: 6.1, 6.2, 6.3, 6.7_
|
||||
- _Depends: 2.1, 2.2, 3.1, 3.2_ (3.1 as well as 3.2: a normal-mode recording's begin time and its allocations' start time must come from one clock reading, or a recorded-vs-replayed comparison can differ by one second)
|
||||
- [ ] 4.2 Bring hand-built recorded dispatch fixtures in line with the session start time
|
||||
- [x] 4.2 Bring hand-built recorded dispatch fixtures in line with the session start time
|
||||
- In every test that hand-builds a recorded dispatch later compared against a live replay, set the recorded allocation's reservation start time to the fixture session's recorded start in whole seconds (design.md, File Structure Plan: the six listed test files).
|
||||
- Update the comments in those files that describe the reservation start time as excluded or name the private comparators.
|
||||
- Harmless before 4.3, because the simulator still ignores the field; required after it.
|
||||
|
|
@ -89,3 +89,4 @@ Test-first throughout (red → green → refactor). Every sub-task leaves the bu
|
|||
- `xce-build.sh` resolves a relative build dir under `src/`: `bash src/tools/xce-build.sh lib asan xce.build.alloceq` builds into `src/xce.build.alloceq`, so iterate with `meson test -C src/xce.build.alloceq`.
|
||||
- `xce-build.sh lib` runs only the `libxce test` binary; run `meson test -C src/xce.build.alloceq "libxce alloc OOM test"` (or plain `meson test`) for the allocation OOM binary, which also wraps `vasprintf`/`__vasprintf_chk` since 2.1.
|
||||
- Simulation mode (`sim_loop.c`) still takes its own session-begin clock reading before `xce_core_begin_session()`; by design that is left to spec scheduler-sim-discrete-clock (3.1 fixed only the normal-mode recorder).
|
||||
- 4.2 left the `from`-excluded comments at `test_sim_verify.c` ~639-681 for 4.3, which inverts the test they document.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue