All the tests work in the test directory but I am still hitting an assert in the SHA1 connection tests

10169: assertion failed “d->n_services_owned >= 0″ file “connection.c” line 1237 function bus_connection_remove_owned_service

It looks like I am forgetting to own a service in one of the states. Or it could be with the new states being added that the test no longer takes them all into account and the tests are wrong. I much more inclined to say it is a bug in my code since I fixed a similar problem earlier today.

Anyway, it looks like I got memory management worked out as the tests are no longer failing on unfreed memory, not that those checks were ever foolproof. So tomorrow it will be all about fixing this bug and others that pop up and then looking to see if I need to write a couple of test cases to iterate over all the states and see if the bus stays well behaved. Then I can submit this hunk of code for review.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]