From 38acf11889c1e1da2610c8e05f1f380f2a2a1ae6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 09:47:29 +0100 Subject: Use putenv() instead of setenv() Since older operating systems don't support setenv() --- p11-kit/tests/conf-test.c | 2 +- p11-kit/tests/pin-test.c | 2 +- p11-kit/tests/progname-test.c | 2 +- p11-kit/tests/test-init.c | 2 +- p11-kit/tests/test-iter.c | 2 +- p11-kit/tests/test-modules.c | 2 +- p11-kit/tests/uri-test.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'p11-kit') 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); -- cgit v1.1