From 7dd0974620cd684c512d1e9ba62553564663012b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 4 Sep 2017 16:25:22 +0900 Subject: [PATCH] test: update test-unit-file Follow-up for c792ec2e3512a672881fc847ff432e26b641c9c9. --- src/test/test-unit-file.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);