io/router: ensure root pointer area in deferred calls

Fixes: https://todo.sr.ht/~eliasnaur/gio/372
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-03-07 12:08:08 +01:00
parent b82427d412
commit 68544111c1
2 changed files with 17 additions and 1 deletions
+12
View File
@@ -1097,6 +1097,18 @@ func TestTransfer(t *testing.T) {
})
}
func TestDeferredInputOp(t *testing.T) {
var ops op.Ops
var r Router
m := op.Record(&ops)
key.InputOp{Tag: new(int)}.Add(&ops)
call := m.Stop()
op.Defer(&ops, call)
r.Frame(&ops)
}
// offer satisfies io.ReadCloser for use in data transfers.
type offer struct {
data string