Add mock 'open' system call to bpsys
authorDavin McCall <davmac@davmac.org>
Tue, 14 Apr 2020 22:56:21 +0000 (08:56 +1000)
committerDavin McCall <davmac@davmac.org>
Tue, 14 Apr 2020 22:56:21 +0000 (08:56 +1000)
commit13ecb45a5c5a0dba34e264f06816ab3d229c5a36
tree24d9c96068916de1d6b280fcf10e91b08be79ebc
parentccdf8b687d3c31da98f7b9778ecd83751b8a3e96
Add mock 'open' system call to bpsys

This allows a test harness to supply file content for particular paths;
opening a "file" will then allow reading the supplied content.
src/includes/baseproc-sys.h
src/includes/dinit-util.h
src/tests/test-bpsys.cc
src/tests/test-includes/baseproc-sys.h