summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/deployer/Server.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2011-03-14 15:15:02 +0100
committerJose <jose@zeroc.com>2011-03-14 15:15:02 +0100
commit008d67d77577e61d56449413a6b2e2d59ebb9408 (patch)
tree7734a5fdd7c3dc08d2a6cba9e3922b0261cfe21f /cpp/test/IceGrid/deployer/Server.cpp
parent4769 - cs/test/IceBox/configuration failure with VS 2010 (diff)
downloadice-008d67d77577e61d56449413a6b2e2d59ebb9408.tar.bz2
ice-008d67d77577e61d56449413a6b2e2d59ebb9408.tar.xz
ice-008d67d77577e61d56449413a6b2e2d59ebb9408.zip
4800 - add test for environment variable substitution in IceGrid descriptor
Diffstat (limited to 'cpp/test/IceGrid/deployer/Server.cpp')
-rw-r--r--cpp/test/IceGrid/deployer/Server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/deployer/Server.cpp b/cpp/test/IceGrid/deployer/Server.cpp
index a551dd08528..3feaba48004 100644
--- a/cpp/test/IceGrid/deployer/Server.cpp
+++ b/cpp/test/IceGrid/deployer/Server.cpp
@@ -96,6 +96,9 @@ main(int argc, char* argv[])
test(value4 != 0 && wstring(value4) == L"2");
#endif
+ char* value5 = getenv("MY_WINDOWS_COMPOSED_VARIABLE");
+ test(value5 != 0 && string(value5) == "BAR;12");
+
#else
char* value2 = getenv("MY_ENV_UNICODE_VARIABLE");
test(value2 !=0 && string(value2) == unicodeVar);
@@ -105,6 +108,9 @@ main(int argc, char* argv[])
char* value4 = getenv(varname2.c_str());
test(value4 != 0 && string(value4) == "2");
+
+ char* value5 = getenv("MY_UNIX_COMPOSED_VARIABLE");
+ test(value5 != 0 && string(value5) == "BAR;12");
#endif
Server app;