test-endpoint: enable test of changed policy behavior
authorDaniel Mack <daniel@zonque.org>
Wed, 1 Oct 2014 17:42:54 +0000 (19:42 +0200)
committerDaniel Mack <daniel@zonque.org>
Wed, 1 Oct 2014 17:42:54 +0000 (19:42 +0200)
Now that the policy does the right thing, actually check that the
custom endpoint connection has not gotten a name change notification.

This would have failed previously.

Signed-off-by: Daniel Mack <daniel@zonque.org>
test/test-endpoint.c

index b69b763fd148a8db4fc297a5bf91fa490ce31c7b..07d421eff5c3d026a5bfeb39c819b16bbed1dd58 100644 (file)
@@ -113,7 +113,7 @@ int kdbus_test_custom_endpoint(struct kdbus_test_env *env)
        ASSERT_RETURN(ret == 0);
 
        /* the filtered endpoint should NOT have received a notification */
-       ret = kdbus_msg_recv(env->conn, &msg, NULL);
+       ret = kdbus_msg_recv(ep_conn, &msg, NULL);
        ASSERT_RETURN(ret == -EAGAIN);
 
        kdbus_conn_free(ep_conn);