summaryrefslogtreecommitdiff
path: root/anim/test/recordings.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/test/recordings.zig')
-rw-r--r--anim/test/recordings.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/anim/test/recordings.zig b/anim/test/recordings.zig
index 31cefdb..dea5b65 100644
--- a/anim/test/recordings.zig
+++ b/anim/test/recordings.zig
@@ -354,8 +354,9 @@ test "the pair's runs: plain faults at its ret on the letters; ASan stops at the
if (std.mem.eql(u8, here.text, "ret")) break;
}
try expectEqual(@as(?u64, 0x4141414141414141), try canim.Recording.word(plain.moment(last), plain.register(last, "rsp"), 8));
- // ASan: its last moment is the report's first instruction, rdi the byte past buf: f3; buf's last byte addressable.
- const at = asan.end() - 1;
+ // ASan: its last moment is in the report (`--until`, past its prologue), rdi the byte past buf: f3; buf's last byte addressable.
+ const at = asan.end();
+ try expect(std.mem.startsWith(u8, asan.strings.get(asan.register(at, "rip")) orelse "", "__asan_report_store1"));
const past = asan.register(at, "rdi");
try expectEqual(@as(?u8, 0xf3), (try canim.ztrace.telescope.shadow(asan.moment(at), past)).?.value);
try expectEqual(@as(?u8, 0), (try canim.ztrace.telescope.shadow(asan.moment(at), past - 1)).?.value);