diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:43:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 21:46:30 -0300 |
| commit | fe650384496d7ff8234fc10e62ea46c18c599b46 (patch) | |
| tree | 68e26d3b2ef5421fea847c460a08aa0d375d9715 /core/Stream.zig | |
| parent | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (diff) | |
| download | pardes-fe650384496d7ff8234fc10e62ea46c18c599b46.tar.gz pardes-fe650384496d7ff8234fc10e62ea46c18c599b46.zip | |
core: the two tests that failed when their edits straddle a wall-clock second compare what was done, not when, and a failed rollback test no longer poisons the next: an edit stamps its text's mtime with the second (core/File.zig:782, CLOCK_REALTIME through tape.value(.mtime)), so rollback's "a copy put back..." (rollback.zig:599) and Places' "...loaded from its dump..." (Places.zig:893), each comparing whole-core digests of one edit made twice a moment apart, failed whenever a second turned between them (reproduced at will with an LD_PRELOAD that makes each CLOCK_REALTIME read a second later: 1 of 1 each; plainly 0 of 50 and 0 of 104 started 5-60 ms before a second turned); no clock can be handed in there (a tape's stamp answers only inside a step of a stepping tape, tape.zig:814, and Places' edit is no step), so each test sets the second edit's mtime to the first's before comparing, as draw.zig's twin test leaves mtime out by name; and the failed rollback test left syntax.held_trees pointing into its dead Epoch (Epoch.begin sets it, only end puts it back), so the next test ("a text written in place...") panicked in syntax.parseTree: Epoch.deinit now lets go of a hold that is its own (+3, product code no user could reach: an epoch dies held only in a failed test); with the shim the rollback file passes 14/14 and Places' 8/8, 50 runs each plain and shimmed 0 failures (load 17-18); tui core-test 848/991 (143 skipped), the base's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Stream.zig')
0 files changed, 0 insertions, 0 deletions
