test: one engine pump and one preedit check for the white-box suites

server_test, ibus_test and xim_adapter_test each ran their own copy of
the same alt loop that stands in for imthread, and two of them had
private checkstr/checkenginepreedit variants. test_util.c now provides
Pump (trace, optional hold on a chosen op, stop) in its own proc so a
test may block in socket I/O while the engine runs, and test.h declares
the engine hooks once; every .c includes dat.h and fn.h itself as the
rest of the tree does. server_test's three copies of fixture setup and
teardown became serverbegin/serverend.
This commit is contained in:
2026-08-16 16:30:32 +09:00
parent 826da31486
commit 795f11be22
16 changed files with 288 additions and 386 deletions

View File

@@ -1,3 +1,5 @@
#include "dat.h"
#include "fn.h"
#include "test.h"
enum