summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 09:47:29 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:08 +0100
commit38acf11889c1e1da2610c8e05f1f380f2a2a1ae6 (patch)
tree620bcadc424919895b17b5984eb3e3d1bdaa600d
parent7823c9ddcb18b5155b3cc0e9d9f57ad0333d5eba (diff)
Use putenv() instead of setenv()
Since older operating systems don't support setenv()
-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
-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
-rw-r--r--trust/tests/test-module.c2
-rw-r--r--trust/tests/test-parser.c2
-rw-r--r--trust/tests/test-session.c2
-rw-r--r--trust/tests/test-token.c2
16 files changed, 16 insertions, 16 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);
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);
diff --git a/trust/tests/test-module.c b/trust/tests/test-module.c
index 0278fd3..42eea41 100644
--- a/trust/tests/test-module.c
+++ b/trust/tests/test-module.c
@@ -342,7 +342,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
/* p11_message_quiet (); */
diff --git a/trust/tests/test-parser.c b/trust/tests/test-parser.c
index 52092d0..931f85c 100644
--- a/trust/tests/test-parser.c
+++ b/trust/tests/test-parser.c
@@ -807,7 +807,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();
diff --git a/trust/tests/test-session.c b/trust/tests/test-session.c
index 48c9146..d77f461 100644
--- a/trust/tests/test-session.c
+++ b/trust/tests/test-session.c
@@ -141,7 +141,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();
diff --git a/trust/tests/test-token.c b/trust/tests/test-token.c
index 2ed1134..027a05e 100644
--- a/trust/tests/test-token.c
+++ b/trust/tests/test-token.c
@@ -88,7 +88,7 @@ main (void)
CuSuite* suite = CuSuiteNew ();
int ret;
- setenv ("P11_KIT_STRICT", "1", 1);
+ putenv ("P11_KIT_STRICT=1");
p11_debug_init ();
p11_message_quiet ();