test: update test-unit-file
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 cb9a37d..df2d959 100644 (file)
@@ -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);