From 55e189007c707fb827b8b287903c258de234bd12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 26 Nov 2014 20:58:34 +0100 Subject: 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. --- src/bus-proxyd/test-bus-policy.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/bus-proxyd') 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; } -- cgit v1.2.3-54-g00ecf