summaryrefslogtreecommitdiff
path: root/p11-kit/tests
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/tests')
-rw-r--r--p11-kit/tests/conf-test.c2
-rw-r--r--p11-kit/tests/pin-test.c2
-rw-r--r--p11-kit/tests/progname-test.c2
-rw-r--r--p11-kit/tests/test-init.c2
-rw-r--r--p11-kit/tests/test-iter.c2
-rw-r--r--p11-kit/tests/test-modules.c2
-rw-r--r--p11-kit/tests/uri-test.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/p11-kit/tests/conf-test.c b/p11-kit/tests/conf-test.c
index eccad29..e74da1b 100644
--- a/p11-kit/tests/conf-test.c
+++ b/p11-kit/tests/conf-test.c
@@ -397,7 +397,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=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 1541547..758acf4 100644
--- a/p11-kit/tests/pin-test.c
+++ b/p11-kit/tests/pin-test.c
@@ -302,7 +302,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=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 6ea373c..18a8c55 100644
--- a/p11-kit/tests/progname-test.c
+++ b/p11-kit/tests/progname-test.c
@@ -81,7 +81,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=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 1c13b15..7df4be9 100644
--- a/p11-kit/tests/test-init.c
+++ b/p11-kit/tests/test-init.c
@@ -295,7 +295,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_mutex_init (&race_mutex);
mock_module_init ();
p11_library_init ();
diff --git a/p11-kit/tests/test-iter.c b/p11-kit/tests/test-iter.c
index 31f25e4..275d2d2 100644
--- a/p11-kit/tests/test-iter.c
+++ b/p11-kit/tests/test-iter.c
@@ -1098,7 +1098,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_library_init ();
mock_module_init ();
diff --git a/p11-kit/tests/test-modules.c b/p11-kit/tests/test-modules.c
index 5ac6192..eb8d952 100644
--- a/p11-kit/tests/test-modules.c
+++ b/p11-kit/tests/test-modules.c
@@ -226,7 +226,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=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 11fdebe..18ee706 100644
--- a/p11-kit/tests/uri-test.c
+++ b/p11-kit/tests/uri-test.c
@@ -1202,7 +1202,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_library_init ();
SUITE_ADD_TEST (suite, test_uri_parse);