summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/consumer/build.zig2
-rw-r--r--test/macos_e2e.swift4
-rw-r--r--test/replicas.zig4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/consumer/build.zig b/test/consumer/build.zig
index ca63bb6e..c643bfb3 100644
--- a/test/consumer/build.zig
+++ b/test/consumer/build.zig
@@ -1,5 +1,5 @@
//! A package that depends on pardes, as a program would (build.zig's head
-//! comment has its lines): pardes's `lib-test`, which `unit-test` runs,
+//! comment has its lines): pardes's `consumer-test`, which `unit-test` runs,
//! runs `zig build test` here. `pardes-syntax` with the minimal grammars,
//! as a program that draws source text itself takes it; and
//! `pardes-editor` with no grammar of pardes's and one of its own, C's,
diff --git a/test/macos_e2e.swift b/test/macos_e2e.swift
index 38d27808..25d83957 100644
--- a/test/macos_e2e.swift
+++ b/test/macos_e2e.swift
@@ -168,7 +168,7 @@ private final class Driver: PardesViewDelegate {
message: "the view measured \(got.cols)x\(got.rows) cells, not the \(cols)x\(rows) the script asked for")
}
- var runtime = pardes_callbacks_s(
+ var callbacks = pardes_callbacks_s(
userdata: Unmanaged.passUnretained(host).toOpaque(),
wakeup: { ud in
// A pty reader thread. One flag and out — see Host.woke.
@@ -200,7 +200,7 @@ private final class Driver: PardesViewDelegate {
text.withCString { pardes_paste($0, text.utf8.count) }
})
- let rc = pardes_init(&runtime, got.cols, got.rows)
+ let rc = pardes_init(&callbacks, got.cols, got.rows)
guard rc == 0 else {
throw ScriptError(message: "pardes_init returned \(rc) at \(cols)x\(rows)")
}
diff --git a/test/replicas.zig b/test/replicas.zig
index 6a6d43b4..d78e3e02 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -1044,7 +1044,7 @@ const Soak = struct {
// A Detach typed in a client's view, or one cut off for its lag: its
// link shut, it hears its end and nothing after; its reader's end
// said (the next boundary lets it go).
- if (s.detach_view) |k| for (s.clients) |*cl| if (cl.peer) |p| if (p.view == k and !cl.shut) {
+ if (s.detach_view) |k| for (s.clients) |*cl| if (cl.peer) |p| if (p.view.index() == k and !cl.shut) {
cl.shut = true;
};
s.detach_view = null;
@@ -1931,7 +1931,7 @@ fn flushAll(sc: *replica.Screens, core: *pardes.Pardes, ps: []const u16, list: *
for (ps, 0..) |peer, c| {
list.clearRetainingCapacity();
// Terminals alone cross: the view is not read.
- try sc.flush(core, peer, 0, list);
+ try sc.flush(core, peer, list);
for (list.items) |bytes| {
tot.deltas += 1;
tot.delta_bytes += bytes.len;