summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/test.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-02-03 18:10:20 +0100
committerJose <jose@zeroc.com>2017-02-03 18:10:20 +0100
commit7274ebf13c7a1ff3b587598335201c3a4e848c90 (patch)
treead673e775b6ab68d511bcc86cf420c519b65948d /cpp/test/Slice/errorDetection/test.py
parentConnection::close fixes for C#/Java/JS (diff)
downloadice-7274ebf13c7a1ff3b587598335201c3a4e848c90.tar.bz2
ice-7274ebf13c7a1ff3b587598335201c3a4e848c90.tar.xz
ice-7274ebf13c7a1ff3b587598335201c3a4e848c90.zip
Rework warning suppression to use global meta data
Diffstat (limited to 'cpp/test/Slice/errorDetection/test.py')
-rw-r--r--cpp/test/Slice/errorDetection/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Slice/errorDetection/test.py b/cpp/test/Slice/errorDetection/test.py
index 32eec3e3f66..dc4f44860e3 100644
--- a/cpp/test/Slice/errorDetection/test.py
+++ b/cpp/test/Slice/errorDetection/test.py
@@ -21,12 +21,12 @@ class SliceErrorDetectionTestCase(ClientTestCase):
for file in files:
current.write(os.path.basename(file) + "... ")
- args = ["-I.", file]
+ args = ["-I.", file, "--output-dir", "tmp"]
if file.find("Underscore") >= 0:
args.append("--underscore")
# Don't print out slice2cpp output and expect failures
- slice2cpp.run(current, args=args, exitstatus=1)
+ slice2cpp.run(current, args=args, exitstatus=0 if file.find("Warning") >= 0 else 1)
output = slice2cpp.getOutput(current)
regex1 = re.compile("\.ice$", re.IGNORECASE)