diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-02 18:56:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-02 18:56:57 -0700 |
commit | adb56cb89a61b6030c522b8f56a497dfbd7cfc14 (patch) | |
tree | 783dd016e9e3529a099c5f504efc90fcb2e4c590 | |
parent | 0c73784c4220f8373bf4e89debd5e3f1c976a095 (diff) |
update test_structbyval
-rwxr-xr-x | tests/runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 39fc03c0..d1ce2b0b 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -4344,10 +4344,11 @@ The current type of b is: 9 # This will fail! See explanation near the warning we check for, in the compiler source code 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() 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' + assert 'Casting a function pointer type to a potentially incompatible one' in output[1], 'Missing expected warning' else: print >> sys.stderr, 'skipping C/C++ conventions warning check, since not i386-pc-linux-gnu' |