diff options
Diffstat (limited to 'test/macos_e2e.swift')
| -rw-r--r-- | test/macos_e2e.swift | 4 |
1 files changed, 2 insertions, 2 deletions
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)") } |
