From be861f92ec8ef8ccb017789bd4077dc88cc5e835 Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Fri, 8 Feb 2019 15:43:49 +0100 Subject: [PATCH] tests: make tests passing again Do not confuse with 'make tests great again'. But at least they should work and give results now. Change-Id: I7f0c69f329e7ef1a1813c23eb51387494c717226 --- src/stest_cynara.c | 2 +- src/stest_signal.c | 2 +- tests/default_allow/system.d/cynara.test.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stest_cynara.c b/src/stest_cynara.c index 61e8b6c..b910ca9 100755 --- a/src/stest_cynara.c +++ b/src/stest_cynara.c @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) __dbuspolicy1_change_creds(200, 0, "L"); for (i = 0; i < COUNT; i++) { - int result = dbuspolicy1_check_in(c, "cynara.destination", "cynara.sender", + int result = dbuspolicy1_check_in(c, "org.freedesktop.systemd1", "cynara.sender", "L", 200, 0, NULL, "cynara.interface", "cynara.method", DBUSPOLICY_MESSAGE_TYPE_METHOD_CALL, "", 0, 0); assert(result == desired_result); diff --git a/src/stest_signal.c b/src/stest_signal.c index 76bca69..1fe2f9e 100755 --- a/src/stest_signal.c +++ b/src/stest_signal.c @@ -17,7 +17,7 @@ int main(int argc, char* argv[]) assert(c != NULL); __dbuspolicy1_change_creds(0, 0, NULL); - tassert(dbuspolicy1_check_out(c, "", "bli.bla.blubb test.test1 test.tes3", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == true); + tassert(dbuspolicy1_check_out(c, "", "org.test.test3", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == true); __dbuspolicy1_change_creds(5010, 0, NULL); tassert(dbuspolicy1_check_out(c, "", "bli.bla.blubb", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == false); diff --git a/tests/default_allow/system.d/cynara.test.conf b/tests/default_allow/system.d/cynara.test.conf index e988385..76c6166 100644 --- a/tests/default_allow/system.d/cynara.test.conf +++ b/tests/default_allow/system.d/cynara.test.conf @@ -4,7 +4,7 @@ - + -- 2.7.4