From: Yu Watanabe Date: Mon, 4 Sep 2017 07:25:22 +0000 (+0900) Subject: test: update test-unit-file X-Git-Tag: v235~170^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6735%2Fhead;p=thirdparty%2Fsystemd.git test: update test-unit-file Follow-up for c792ec2e3512a672881fc847ff432e26b641c9c9. --- diff --git a/src/test/test-unit-file.c b/src/test/test-unit-file.c index cb9a37d9a6f..df2d9593e8f 100644 --- a/src/test/test-unit-file.c +++ b/src/test/test-unit-file.c @@ -669,6 +669,12 @@ static void test_config_parse_capability_set(void) { assert_se(r >= 0); 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);