summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2009-12-09 17:55:04 +0100
committerJose <jose@zeroc.com>2009-12-09 17:55:04 +0100
commit5f56433f8f47efe1f73c873e5fa5b490112694d8 (patch)
tree08cd4e1e43cfeb1f5238a686f01ea387e80ff138 /cpp/test
parentRemoved -ftemplate-depth-128 from all GCC builds (diff)
downloadice-5f56433f8f47efe1f73c873e5fa5b490112694d8.tar.bz2
ice-5f56433f8f47efe1f73c873e5fa5b490112694d8.tar.xz
ice-5f56433f8f47efe1f73c873e5fa5b490112694d8.zip
4089 - add waitTestSuccess to fileLock tests.
Diffstat (limited to 'cpp/test')
-rwxr-xr-xcpp/test/Freeze/fileLock/run.py4
-rwxr-xr-xcpp/test/IceUtil/fileLock/run.py5
2 files changed, 7 insertions, 2 deletions
diff --git a/cpp/test/Freeze/fileLock/run.py b/cpp/test/Freeze/fileLock/run.py
index a01c758ea11..c4da98ed37c 100755
--- a/cpp/test/Freeze/fileLock/run.py
+++ b/cpp/test/Freeze/fileLock/run.py
@@ -32,14 +32,18 @@ clientFail = os.path.join(os.getcwd(), "clientFail")
clientFailExe = TestUtil.startClient(clientFail, "", None, None, False)
clientFailExe.expect('File lock not acquired')
+clientFailExe.waitTestSuccess()
+
# send some output to client to terminate it.
clientExe.sendline('go')
clientExe.expect('File lock released.')
+clientExe.waitTestSuccess()
# The lock is gone try to acquire it again.
clientExe = TestUtil.startClient(client, "", None, None, False)
clientExe.expect('File lock acquired.\.*')
clientExe.sendline('go')
clientExe.expect('File lock released.')
+clientExe.waitTestSuccess()
print "ok" \ No newline at end of file
diff --git a/cpp/test/IceUtil/fileLock/run.py b/cpp/test/IceUtil/fileLock/run.py
index 67cf14acc21..55bda695b9c 100755
--- a/cpp/test/IceUtil/fileLock/run.py
+++ b/cpp/test/IceUtil/fileLock/run.py
@@ -36,11 +36,12 @@ assert(os.path.exists("file.lock"));
clientFailExe = TestUtil.startClient(clientFail, "", None, None, False)
clientFailExe.expect('File lock not acquired.')
+clientFailExe.waitTestSuccess()
# send some output to client to terminate it.
clientExe.sendline('go')
clientExe.expect('File lock released.')
-
+clientExe.waitTestSuccess()
#
# Ensure that the file lock was removed.
#
@@ -51,5 +52,5 @@ clientExe = TestUtil.startClient(client, "", None, None, False)
clientExe.expect('File lock acquired.\.*')
clientExe.sendline('go')
clientExe.expect('File lock released.')
-
+clientExe.waitTestSuccess()
print "ok" \ No newline at end of file