summaryrefslogtreecommitdiff
path: root/common/tests
diff options
context:
space:
mode:
Diffstat (limited to 'common/tests')
-rw-r--r--common/tests/test-asn1.c2
-rw-r--r--common/tests/test-attrs.c2
-rw-r--r--common/tests/test-buffer.c2
-rw-r--r--common/tests/test-oid.c2
-rw-r--r--common/tests/test-x509.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/common/tests/test-asn1.c b/common/tests/test-asn1.c
index 34e9129..0034623 100644
--- a/common/tests/test-asn1.c
+++ b/common/tests/test-asn1.c
@@ -96,7 +96,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
SUITE_ADD_TEST (suite, test_tlv_length);
diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c
index ccbb801..09d0ace 100644
--- a/common/tests/test-attrs.c
+++ b/common/tests/test-attrs.c
@@ -575,7 +575,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
SUITE_ADD_TEST (suite, test_equal);
diff --git a/common/tests/test-buffer.c b/common/tests/test-buffer.c
index 9db5f83..baf7b73 100644
--- a/common/tests/test-buffer.c
+++ b/common/tests/test-buffer.c
@@ -192,7 +192,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
SUITE_ADD_TEST (suite, test_init_uninit);
diff --git a/common/tests/test-oid.c b/common/tests/test-oid.c
index 7c185ad..71b8278 100644
--- a/common/tests/test-oid.c
+++ b/common/tests/test-oid.c
@@ -116,7 +116,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
SUITE_ADD_TEST (suite, test_known_oids);
diff --git a/common/tests/test-x509.c b/common/tests/test-x509.c
index 6da26bf..08c269d 100644
--- a/common/tests/test-x509.c
+++ b/common/tests/test-x509.c
@@ -421,7 +421,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
SUITE_ADD_TEST (suite, test_parse_extended_key_usage);