You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/11 18:19:24 UTC
svn commit: r813910 -
/commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
Author: mturk
Date: Fri Sep 11 16:19:23 2009
New Revision: 813910
URL: http://svn.apache.org/viewvc?rev=813910&view=rev
Log:
Do some win32 specific env tests
Modified:
commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
Modified: commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c?rev=813910&r1=813909&r2=813910&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c Fri Sep 11 16:19:23 2009
@@ -89,6 +89,22 @@
if (envval)
failed++;
x_free(envval);
+#if defined(WIN32)
+ ACR_EnvSet("ACR_TEST_SUITE_VAR", "%USERNAME%");
+ envval = ACR_EnvGet("ACR_TEST_SUITE_VAR");
+ if (!envval)
+ failed++;
+ else
+ printf("Var should be expanded : %s\n", envval);
+ x_free(envval);
+ ACR_EnvSet("ACR_TEST_SUITE_VAR", "%NON_EXISTING_ENVIRONMENT_VAR%");
+ envval = ACR_EnvGet("ACR_TEST_SUITE_VAR");
+ if (!envval)
+ failed++;
+ else
+ printf("Var should not be expanded : %s\n", envval);
+ x_free(envval);
+#endif
tests_failed += failed;
if (failed)
fprintf(stderr, "getenv: Failed (%d)\n", failed);