On Mon, Jul 7, 2025 at 6:02 PM Noah Misch <n...@leadboat.com> wrote:
> In your test, just detach the injection point while the backend under test is
> waiting at the injection point.  All of
> src/test/modules/injection_points/specs/*.spec use that technique.

That appears to work (without the kludge I added to nbtsearch.c),
though I find that I need to detach the injection point *and* wake up
the waiting backend. In that order. Thanks!

For what it's worth, I found
src/test/modules/injection_points/specs/basic.spec (which is supposed
to serve as a template) hard to follow. The comments don't seem to
explain what the detach and wait functions actually do, and how and
why one might want to call them together.

--
Peter Geoghegan


Reply via email to