test: split conn_update() into update attach-flags and update policy
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 5 Aug 2014 01:46:08 +0000 (02:46 +0100)
committerKay Sievers <kay@vrfy.org>
Tue, 5 Aug 2014 07:24:29 +0000 (09:24 +0200)
commitd68750d009796f79e25fff5cc3c138975e077593
tree86a8a7e7a47c223cd3cc1c284e3547bd1cf50b44
parent7593bc182273cffefa3e1a6a6812b0f0c2456d2f
test: split conn_update() into update attach-flags and update policy

Since ordinary connections are only interested in the attach-flags and
policy holders in policies, split conn_update() into:
1) conn_update_attach_flags()
2) conn_update_policy()

This way we use the conn_update_policy() function in test-kdbus-policy
with a policy-holding connection and we pass all the tests. This
prevents messing up with the attach-flags.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/kdbus-util.c
test/kdbus-util.h
test/test-kdbus-policy.c