summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/run.py
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-05-06 20:54:29 +0000
committerMarc Laukien <marc@zeroc.com>2002-05-06 20:54:29 +0000
commitb06f77699cb16724a3917af919f26b923f9530d0 (patch)
tree7681963e3dc9d00be70ae655f52c0c300f0aa241 /cpp/test/Slice/errorDetection/run.py
parentUpdated to fix a bug that Purify detected in RSAPrivateKey.cpp (that Marc (diff)
downloadice-b06f77699cb16724a3917af919f26b923f9530d0.tar.bz2
ice-b06f77699cb16724a3917af919f26b923f9530d0.tar.xz
ice-b06f77699cb16724a3917af919f26b923f9530d0.zip
fix
Diffstat (limited to 'cpp/test/Slice/errorDetection/run.py')
-rwxr-xr-xcpp/test/Slice/errorDetection/run.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py
index aa164760112..8e4551f4730 100755
--- a/cpp/test/Slice/errorDetection/run.py
+++ b/cpp/test/Slice/errorDetection/run.py
@@ -12,6 +12,7 @@
import os, sys, re
for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
+ toplevel = os.path.normpath(toplevel)
if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
break
else:
@@ -31,10 +32,10 @@ for file in files:
print file + "...",
- stdin, stdout, stderr = os.popen3(slice2cpp + " " + os.path.join(directory, file))
+ command = slice2cpp + " " + os.path.join(directory, file);
+ stdin, stdout, stderr = os.popen3(command)
lines1 = stderr.readlines()
lines2 = open(os.path.join(directory, regex1.sub(".err", file)), "r").readlines()
-
if len(lines1) != len(lines2):
print "failed!"
sys.exit(1)