unit-testing boost interprocess client

19 Views Asked by At

I have to unit-test a client of a shared memory map constructed using the boost interprocess. It is really awkward to create shared memory blocks for unit-testing. Normally I would use some static memory to simulate shared memory behavior during unit-tests.

I do not see such a possibility in the boost interprocess. What is the established practice for unit-testing clients of the boos interprocess?

1

There are 1 best solutions below

0
uuu777 On

There is basic managed external buffer that provides the same API to manage a local buffer:

basic-managed-external-buffer