tls/tests: don't try to assert !G_IS_OBJECT() on destroyed objects
authorDan Winship <danw@gnome.org>
Mon, 13 May 2013 21:06:29 +0000 (17:06 -0400)
committerDan Winship <danw@gnome.org>
Mon, 20 May 2013 13:11:20 +0000 (10:11 -0300)
commitfd06ab1cc79703ff83fef0d66fe4a4f385d1353e
tree3c2bf07cd4a07248496a9ae15bf6e676904fb0ca
parent5d29c30f2224c2695a8a0f1bbadd92a78d0ba005
tls/tests: don't try to assert !G_IS_OBJECT() on destroyed objects

The pkcs11 tests were using g_assert(!G_IS_OBJECT()) to verify that
objects had been destroyed, but that's just crazy, and will crash
sometimes. Fix them to do a ref_count check instead.
tls/tests/pkcs11-pin.c
tls/tests/pkcs11-slot.c