aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-21 16:15:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:01:59 -0700
commit741365c7892957ef446b2da242cf509102273c66 (patch)
tree4acf6068b51a4a4daa4c70f13a3d56cc128c00b7
parent9270ab0773b8fedb0bb8c1d124aad75ae8aec10e (diff)
update test_structbyval
-rwxr-xr-xtests/runner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 1e6a663e..e51f5c6b 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4259,7 +4259,10 @@ The current type of b is: 9
output = Popen([PYTHON, EMCC, all_name], stderr=PIPE).communicate()
# 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 output[1], 'Missing expected warning'
+ if 'i386-pc-linux-gnu' in COMPILER_OPTS:
+ assert 'Casting a function pointer type to another with a different number of arguments' in output[1], 'Missing expected warning'
+ else:
+ print >> sys.stderr, 'skipping C/C++ conventions warning check, since not i386-pc-linux-gnu'
def test_stdlibs(self):
if self.emcc_args is None: return self.skip('requires emcc')