aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-21 17:45:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-21 17:45:33 -0800
commit676f7b3a4279f52005e8fb239ff3d9e0392d2181 (patch)
tree64900268e80b3cd12e85c4d91f9f43000ce98b20 /tests
parentda9f5bf544cce41433c875430191d243a6866662 (diff)
fix test_structbyval
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index a8060b21..d543daef 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1999,8 +1999,9 @@ def process(filename):
except Exception, e:
# Check for warning in the generated code
generated = open(os.path.join(self.get_dir(), 'src.cpp.o.js')).read()
- assert 'Casting a function pointer type to another with a different number of arguments.' in generated, 'Missing expected warning'
- assert 'void (i32, i32)* ==> void (%struct.point.0*)*' in generated, 'Missing expected warning details'
+ if self.emcc_args is None or self.emcc_args == []: # Optimized code is missing the warning comments
+ assert 'Casting a function pointer type to another with a different number of arguments.' in generated, 'Missing expected warning'
+ assert 'void (i32, i32)* ==> void (%struct.point.0*)*' in generated, 'Missing expected warning details'
return
raise Exception('We should not have gotten to here!')