From 205ed0e0e26010150950e9e963a9a36693b5f71e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 10:05:03 +0100 Subject: Initialize modules correctly in tests This fixes hangs when running tests on windows --- trust/tests/test-module.c | 2 +- trust/tests/test-parser.c | 1 + trust/tests/test-session.c | 1 + trust/tests/test-token.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'trust') diff --git a/trust/tests/test-module.c b/trust/tests/test-module.c index 577ae5a..2e085ba 100644 --- a/trust/tests/test-module.c +++ b/trust/tests/test-module.c @@ -345,8 +345,8 @@ main (void) int ret; putenv ("P11_KIT_STRICT=1"); + p11_library_init (); p11_debug_init (); - /* p11_message_quiet (); */ SUITE_ADD_TEST (suite, test_find_certificates); SUITE_ADD_TEST (suite, test_find_builtin); diff --git a/trust/tests/test-parser.c b/trust/tests/test-parser.c index 931f85c..581ff5e 100644 --- a/trust/tests/test-parser.c +++ b/trust/tests/test-parser.c @@ -808,6 +808,7 @@ main (void) int ret; putenv ("P11_KIT_STRICT=1"); + p11_library_init (); p11_debug_init (); p11_message_quiet (); diff --git a/trust/tests/test-session.c b/trust/tests/test-session.c index d77f461..d420d5c 100644 --- a/trust/tests/test-session.c +++ b/trust/tests/test-session.c @@ -142,6 +142,7 @@ main (void) int ret; putenv ("P11_KIT_STRICT=1"); + p11_library_init (); p11_debug_init (); p11_message_quiet (); diff --git a/trust/tests/test-token.c b/trust/tests/test-token.c index 027a05e..382d021 100644 --- a/trust/tests/test-token.c +++ b/trust/tests/test-token.c @@ -89,6 +89,7 @@ main (void) int ret; putenv ("P11_KIT_STRICT=1"); + p11_library_init (); p11_debug_init (); p11_message_quiet (); -- cgit v1.1