[pypy-svn] r37740 - pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test
pedronis at codespeak.net
pedronis at codespeak.net
Thu Feb 1 16:00:42 CET 2007
Author: pedronis
Date: Thu Feb 1 16:00:41 2007
New Revision: 37740
Modified:
pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_exception.py
Log:
test showing the problem with malloc "exceptions" not generating segregated exception paths.
Modified: pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_exception.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_exception.py (original)
+++ pypy/branch/jit-virtual-world/pypy/jit/timeshifter/test/test_exception.py Thu Feb 1 16:00:41 2007
@@ -138,3 +138,28 @@
res = self.timeshift(ll_function, [5], [], policy=P_NOVIRTUAL)
assert res == 5
self.check_insns(malloc=0)
+
+ def test_not_segregated_malloc_exception_path(self):
+ py.test.skip("WIP")
+ class E(Exception):
+ def __init__(self, msg):
+ self.msg = msg
+
+ def help(l, x):
+ if x < 0:
+ raise E("x negative: %d" %x)
+ l.append(x)
+ return l
+
+ def ll_function(x):
+ l = []
+ l = help(l, x)
+ return len(l)+x
+
+ res = self.timeshift(ll_function, [5], [], policy=P_OOPSPEC)
+ res == 6
+ self.check_oops(newlist=0)
+
+
+
+
More information about the Pypy-commit
mailing list