[systemd-devel] [systemd-commits] src/bus-proxyd test/bus-policy

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Sep 25 20:05:57 PDT 2014


On Wed, Sep 24, 2014 at 08:08:24AM -0700, Daniel Mack wrote:
>  src/bus-proxyd/bus-policy.c      |  200 ++++++++++++++++++++++++---------------
>  src/bus-proxyd/bus-policy.h      |   17 +++
>  src/bus-proxyd/test-bus-policy.c |   92 +++++------------
>  test/bus-policy/methods.conf     |    2 
>  4 files changed, 171 insertions(+), 140 deletions(-)
> 
> New commits:
> commit 078ef7b85ad77ba999588f72b31a50ced5907692
> Author: Daniel Mack <daniel at zonque.org>
> Date:   Wed Sep 24 17:02:08 2014 +0200
> 
>     bus-policy: split API for bus-proxyd
>     
>     Instead of operating on an sd_bus_message object, expose an API that has 4
>     functions:
>     
>       policy_check_own()
>       policy_check_hello()
>       policy_check_recv()
>       policy_check_send()
>     
>     This also allows dropping extra code to parse message contents - the bus
>     proxy already has dedicated code paths for that, and we can hook into
>     those later.
>     
>     Tests amended accordingly.
Hi,
test-bus-policy fails intermittently in 'make distcheck'

FAIL: test-bus-policy
=====================

Assertion 'policy_check_own(&p, &ucred, "org.test.test1") == true' failed at ../src/bus-proxyd/test-bus-policy.c:58,
 function main(). Aborting.

Zbyszek


More information about the systemd-devel mailing list