summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/plugin/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/plugin/expect.py')
-rwxr-xr-xcpp/demo/Ice/plugin/expect.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/demo/Ice/plugin/expect.py b/cpp/demo/Ice/plugin/expect.py
index f4da233e308..1c80743a4a9 100755
--- a/cpp/demo/Ice/plugin/expect.py
+++ b/cpp/demo/Ice/plugin/expect.py
@@ -22,9 +22,16 @@ sys.path.append(path[0])
from demoscript import *
from demoscript.Ice import plugin
+libraryPath = os.environ["LD_LIBRARY_PATH"];
+if Util.isLinux():
+ os.environ["LD_LIBRARY_PATH"] = libraryPath + ":."
+
server = Util.spawn('./server --Ice.PrintAdapterReady --Ice.Warn.Connections=0')
server.expect('.* ready')
client = Util.spawn('./client --Ice.Warn.Connections=0')
client.expect('.*==>')
plugin.run(client, server)
+
+if Util.isLinux():
+ os.environ["LD_LIBRARY_PATH"] = libraryPath \ No newline at end of file