summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/configuration/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceSSL/configuration/Server.cpp')
-rw-r--r--cpp/test/IceSSL/configuration/Server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/test/IceSSL/configuration/Server.cpp b/cpp/test/IceSSL/configuration/Server.cpp
index ed1ddb25e74..9b9696d64b3 100644
--- a/cpp/test/IceSSL/configuration/Server.cpp
+++ b/cpp/test/IceSSL/configuration/Server.cpp
@@ -19,13 +19,15 @@ int
run(int argc, char** argv, const Ice::CommunicatorPtr& communicator)
{
string testdir;
-#if TARGET_OS_IPHONE == 0
+#if !defined(__APPLE__) || TARGET_OS_IPHONE == 0
if(argc < 2)
{
cerr << "Usage: " << argv[0] << " testdir" << endl;
return 1;
}
testdir = string(argv[1]) + "/../certs";
+#else
+ testdir = "certs";
#endif
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0, "tcp"));