summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-26 20:58:34 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-26 20:58:34 +0100
commit55e189007c707fb827b8b287903c258de234bd12 (patch)
tree1fd898544668a917194646cc23ea35049e4ccd5c /src
parent3a9cca11042331fc053ac1aa6363603622f1188c (diff)
bus-policy: also add in other bus policy tests from dbus1
dbus1 only checks if these files parse correctly so let's do the same for now.
Diffstat (limited to 'src')
-rw-r--r--src/bus-proxyd/test-bus-policy.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bus-proxyd/test-bus-policy.c b/src/bus-proxyd/test-bus-policy.c
index a4b7b6af08..3140e083c2 100644
--- a/src/bus-proxyd/test-bus-policy.c
+++ b/src/bus-proxyd/test-bus-policy.c
@@ -147,5 +147,17 @@ int main(int argc, char *argv[]) {
policy_free(&p);
+ /* dbus1 test file: many rules */
+
+ assert_se(test_policy_load(&p, "many-rules.conf") >= 0);
+ policy_dump(&p);
+ policy_free(&p);
+
+ /* dbus1 test file: generic test */
+
+ assert_se(test_policy_load(&p, "test.conf") >= 0);
+ policy_dump(&p);
+ policy_free(&p);
+
return EXIT_SUCCESS;
}