tests: cover ownership across ipc connections

This commit is contained in:
2026-08-13 23:07:25 +09:00
parent 21a94d447c
commit bb2a970db1
5 changed files with 399 additions and 1 deletions

View File

@@ -9,6 +9,31 @@ Str shownpre(Im*);
static int typekeys(struct ct*, char*, Str*);
void
testengineinit(int lang)
{
init();
im.l = getlang(lang);
}
void
testenginehandle(Keyreq *req)
{
imhandlekey(req);
}
void*
testengineowner(void)
{
return activeowner;
}
void
testenginepreedit(Str *preedit)
{
impre(preedit);
}
void
vietnamese_state_lifetime(struct ct *t)
{