aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-11 10:06:13 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-11 10:06:13 -0800
commit5c53a8fe91f6e133337a6b2f3dcbf28eed86b234 (patch)
treef0a3ea2242287823c5d7f6bfdd1dbbce413e8646
parentf1bba83e5e8233fe7424e0f7a33d8feda78c8894 (diff)
update test_safe_dyncalls
-rw-r--r--tests/test_core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index b9b617db..28fd3c49 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1538,7 +1538,9 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
return 0;
}
'''.replace('COND', '==' if cond else '!=').replace('BODY', r'{ printf("all good\n"); }' if body else '')
- self.do_run(src, 'dyncall error: vi' if not work else 'all good')
+ # typically we get the dyncall error message from SAFE_DYNCALLS, however llvm opts can devirtualize the
+ # call in -O2, leading to the much nicer error message specifically about the missing function
+ self.do_run(src, ('dyncall error: vi', 'missing function: _ZN2D14doItEv') if not work else 'all good')
def test_dynamic_cast(self):
if self.emcc_args is None: return self.skip('need libcxxabi')