summaryrefslogtreecommitdiff
path: root/gcr/tests/test-trust.c
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-11-17 15:26:55 +0100
committerStef Walter <stefw@collabora.co.uk>2011-11-21 10:28:27 +0100
commitf3b9d46c75675e9b4b451164dd32ed9b1af0dfb1 (patch)
tree5b66cf37d54e3b447e3087cc27b03eeb7ae332f7 /gcr/tests/test-trust.c
parent97cd79171dfbba24394f070f3946b20c2d518d2d (diff)
downloadgcr-f3b9d46c75675e9b4b451164dd32ed9b1af0dfb1.tar.gz
Add valgrind memory checking and fix up errors
* This is especially necessary after migrating to EggBytes since it's reference counted and an easy sourc of memory leaks * Remove threading from testing framework, as gcr isn't threadsafe in all parts. * Fix bugs discovered in memory checking. * Fix up some of the testing stuff.
Diffstat (limited to 'gcr/tests/test-trust.c')
-rw-r--r--gcr/tests/test-trust.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcr/tests/test-trust.c b/gcr/tests/test-trust.c
index 9459905..04147cd 100644
--- a/gcr/tests/test-trust.c
+++ b/gcr/tests/test-trust.c
@@ -90,6 +90,8 @@ teardown (Test *test, gconstpointer unused)
rv = (test->funcs.C_Finalize) (NULL);
gck_assert_cmprv (rv, ==, CKR_OK);
+
+ _gcr_uninitialize_library ();
}
static void
@@ -322,5 +324,5 @@ main (int argc, char **argv)
g_test_add ("/gcr/trust/is_certificate_anchored_yes", Test, NULL, setup, test_is_certificate_anchored_yes, teardown);
g_test_add ("/gcr/trust/is_certificate_anchored_async", Test, NULL, setup, test_is_certificate_anchored_async, teardown);
- return egg_tests_run_in_thread_with_loop ();
+ return egg_tests_run_with_loop ();
}