]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: update test-unit-file 6735/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Sep 2017 07:25:22 +0000 (16:25 +0900)
committerYu 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

index cb9a37d9a6fea77edbae38742f0891475b0a0267..df2d9593e8fbf4b6236192af64be84093208b57b 100644 (file)
@@ -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);