projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25947a7
)
baseproc-sys.h: Add explanatory comment.
author
Davin McCall
<davmac@davmac.org>
Mon, 15 Jan 2018 21:18:57 +0000
(21:18 +0000)
committer
Davin McCall
<davmac@davmac.org>
Mon, 15 Jan 2018 21:18:57 +0000
(21:18 +0000)
src/includes/baseproc-sys.h
patch
|
blob
|
history
diff --git
a/src/includes/baseproc-sys.h
b/src/includes/baseproc-sys.h
index e410ebe4436fcac4e2ea6b422b55a8cb61878193..217c8ca9bd5ebe2ac8591b3bb76debd8e33aae84 100644
(file)
--- a/
src/includes/baseproc-sys.h
+++ b/
src/includes/baseproc-sys.h
@@
-1,3
+1,10
@@
+/*
+ * This header implements a namespace, bp_sys, which wraps various system calls used by baseproc-service.cc.
+ *
+ * When running tests, another header is substituted in place of this one. The substitute provides mocks/stubs
+ * for the functions, to avoid calling the real functions and thus allow for unit-level testing.
+ */
+
namespace bp_sys {
using dasynq::pipe2;