Improve unit test infrastructure - allow control of write()
authorDavin McCall <davmac@davmac.org>
Wed, 1 Jan 2020 00:53:13 +0000 (10:53 +1000)
committerDavin McCall <davmac@davmac.org>
Wed, 1 Jan 2020 00:53:13 +0000 (10:53 +1000)
commit18ef620679245e3161618ba4bed760489647b1c0
tree2350bb7feb7a018aa910a47ef30a9121df23147e
parent5b16ed8d32e302c37a5d8f4dcfb8ab16bf9e8196
Improve unit test infrastructure - allow control of write()

In the unit test infrastructure, allow behaviour of the write() call
(i.e. bp_sys::write()) to be overridden with a custom handler.
src/tests/test-bpsys.cc
src/tests/test-includes/baseproc-sys.h
src/tests/test-includes/dinit.h