summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/run.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-03-04 19:27:33 +0100
committerJose <jose@zeroc.com>2015-03-04 19:27:33 +0100
commit917fb874ad74efd7593b5f679937537c0d0295cc (patch)
tree981c3fb5cb64b2e1f0105dd91ff97a7808731dd6 /cpp/test/Slice/errorDetection/run.py
parentICE-6338 make stream writeEnum/readEnum virtual (diff)
downloadice-917fb874ad74efd7593b5f679937537c0d0295cc.tar.bz2
ice-917fb874ad74efd7593b5f679937537c0d0295cc.tar.xz
ice-917fb874ad74efd7593b5f679937537c0d0295cc.zip
remove debug ouput from errorDetection
Diffstat (limited to 'cpp/test/Slice/errorDetection/run.py')
-rwxr-xr-xcpp/test/Slice/errorDetection/run.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py
index cd77180a239..0d4e3ebe5f8 100755
--- a/cpp/test/Slice/errorDetection/run.py
+++ b/cpp/test/Slice/errorDetection/run.py
@@ -44,9 +44,9 @@ for file in files:
lines1 = stderr.readlines()
lines2 = open(os.path.join(os.getcwd(), regex1.sub(".err", file)), "r").readlines()
-# if len(lines1) != len(lines2):
-# print("failed!")
-# sys.exit(1)
+ if len(lines1) != len(lines2):
+ print("failed!")
+ sys.exit(1)
regex2 = re.compile("^.*(?=" + file + ")")
i = 0
@@ -58,8 +58,6 @@ for file in files:
line1 = regex2.sub("", lines1[i].decode("utf-8")).strip()
line2 = regex2.sub("", lines2[i]).strip()
if line1 != line2:
- print line1
- print line2
print("failed!")
sys.exit(1)
i = i + 1