diff options
author | Adrian Taylor <adrian@macrobug.com> | 2012-02-10 23:11:34 +0000 |
---|---|---|
committer | Adrian Taylor <adrian@macrobug.com> | 2012-02-20 08:50:04 +0000 |
commit | e6f092d69f1806153571e6e808caea76f8bf5190 (patch) | |
tree | 0ed8e824e097d43cd3b6a03e39bb79c627a2deef /tests/runner.py | |
parent | 1d5093e31274f666b052e0ac392a396f3e3b1875 (diff) |
Polymorphic exception handling.
Previously exception handling only worked if there were a 'catch' block which precisely matched
the type of the thrown exception.
That's not always the case if we're trying to catch subclasses.
This change enhances behaviour to match subclasses, and also covers some other cases where
we weren't catching the right thing.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 49020904..e599d30e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1446,8 +1446,6 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv): self.do_run(src, 'success') def test_typed_exceptions(self): - return self.skip('TODO: fix this for llvm 3.0') - Settings.SAFE_HEAP = 0 # Throwing null will cause an ignorable null pointer access. Settings.EXCEPTION_DEBUG = 0 # Messes up expected output. src = open(path_from_root('tests', 'exceptions', 'typed.cpp'), 'r').read() |