projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7070b
)
test: update test-unit-file
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 4 Sep 2017 07:25:22 +0000
(16:25 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 4 Sep 2017 07:25:28 +0000
(16:25 +0900)
Follow-up for
c792ec2e3512a672881fc847ff432e26b641c9c9
.
src/test/test-unit-file.c
patch
|
blob
|
history
diff --git
a/src/test/test-unit-file.c
b/src/test/test-unit-file.c
index
cb9a37d
..
df2d959
100644
(file)
--- a/
src/test/test-unit-file.c
+++ b/
src/test/test-unit-file.c
@@
-670,6
+670,12
@@
static void test_config_parse_capability_set(void) {
assert_se(capability_bounding_set == (make_cap(CAP_NET_RAW) | make_cap(CAP_NET_ADMIN)));
r = config_parse_capability_set(NULL, "fake", 1, "section", 1,
+ "CapabilityBoundingSet", 0, "~CAP_NET_ADMIN",
+ &capability_bounding_set, NULL);
+ assert_se(r >= 0);
+ assert_se(capability_bounding_set == make_cap(CAP_NET_RAW));
+
+ r = config_parse_capability_set(NULL, "fake", 1, "section", 1,
"CapabilityBoundingSet", 0, "",
&capability_bounding_set, NULL);
assert_se(r >= 0);