summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-12-10 11:13:01 +0100
committerStef Walter <stefw@gnome.org>2013-01-09 13:49:44 +0100
commitb39c9a7792824dfa8a05926261315356d9007098 (patch)
treee4d688ab8917f009fea5e945e3b9a101ab8f53fb
parent3ebc9a78d4bca0b630a8b887ab93d6cc654f2cb2 (diff)
Set strict debug preconditions during testing
-rw-r--r--common/tests/test-attrs.c4
-rw-r--r--p11-kit/tests/conf-test.c1
-rw-r--r--p11-kit/tests/pin-test.c1
-rw-r--r--p11-kit/tests/progname-test.c1
-rw-r--r--p11-kit/tests/test-init.c1
-rw-r--r--p11-kit/tests/test-modules.c1
-rw-r--r--p11-kit/tests/uri-test.c1
7 files changed, 10 insertions, 0 deletions
diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c
index e358edf..445695f 100644
--- a/common/tests/test-attrs.c
+++ b/common/tests/test-attrs.c
@@ -40,6 +40,7 @@
#include <string.h>
#include "attrs.h"
+#include "debug.h"
static void
test_count (CuTest *tc)
@@ -486,6 +487,9 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
+ p11_debug_init ();
+
SUITE_ADD_TEST (suite, test_count);
SUITE_ADD_TEST (suite, test_build_one);
SUITE_ADD_TEST (suite, test_build_two);
diff --git a/p11-kit/tests/conf-test.c b/p11-kit/tests/conf-test.c
index 4ea1313..ab3b31d 100644
--- a/p11-kit/tests/conf-test.c
+++ b/p11-kit/tests/conf-test.c
@@ -385,6 +385,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_library_init ();
SUITE_ADD_TEST (suite, test_parse_conf_1);
diff --git a/p11-kit/tests/pin-test.c b/p11-kit/tests/pin-test.c
index 5427f8b..1541547 100644
--- a/p11-kit/tests/pin-test.c
+++ b/p11-kit/tests/pin-test.c
@@ -302,6 +302,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_library_init ();
SUITE_ADD_TEST (suite, test_pin_register_unregister);
diff --git a/p11-kit/tests/progname-test.c b/p11-kit/tests/progname-test.c
index bd37400..6ea373c 100644
--- a/p11-kit/tests/progname-test.c
+++ b/p11-kit/tests/progname-test.c
@@ -81,6 +81,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_library_init ();
SUITE_ADD_TEST (suite, test_progname_default);
diff --git a/p11-kit/tests/test-init.c b/p11-kit/tests/test-init.c
index 5861bbf..7664666 100644
--- a/p11-kit/tests/test-init.c
+++ b/p11-kit/tests/test-init.c
@@ -295,6 +295,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_mutex_init (&race_mutex);
mock_module_init ();
p11_library_init ();
diff --git a/p11-kit/tests/test-modules.c b/p11-kit/tests/test-modules.c
index 159e04e..5ac6192 100644
--- a/p11-kit/tests/test-modules.c
+++ b/p11-kit/tests/test-modules.c
@@ -226,6 +226,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_library_init ();
SUITE_ADD_TEST (suite, test_no_duplicates);
diff --git a/p11-kit/tests/uri-test.c b/p11-kit/tests/uri-test.c
index ba4c634..1920412 100644
--- a/p11-kit/tests/uri-test.c
+++ b/p11-kit/tests/uri-test.c
@@ -1172,6 +1172,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
+ setenv ("P11_KIT_STRICT", "1", 1);
p11_library_init ();
SUITE_ADD_TEST (suite, test_uri_parse);