[pypy-svn] r58972 - pypy/branch/2.5-merge/pypy/translator/c/gcc/test
arigo at codespeak.net
arigo at codespeak.net
Sat Oct 11 15:01:53 CEST 2008
Author: arigo
Date: Sat Oct 11 15:01:52 2008
New Revision: 58972
Modified:
pypy/branch/2.5-merge/pypy/translator/c/gcc/test/test_asmgcroot.py
Log:
(antocuni, arigo)
It seems that we found some obscure asmgcc bug :-(
Modified: pypy/branch/2.5-merge/pypy/translator/c/gcc/test/test_asmgcroot.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/translator/c/gcc/test/test_asmgcroot.py (original)
+++ pypy/branch/2.5-merge/pypy/translator/c/gcc/test/test_asmgcroot.py Sat Oct 11 15:01:52 2008
@@ -82,6 +82,32 @@
f.writelines(lines)
f.close()
+ def test_some_unidentified_bug(self):
+ py.test.skip("XXX FIX ME")
+ class Element:
+ pass
+ elements = [Element() for ii in range(10000)]
+ l = elements[:]
+
+ def dostuff():
+ reverse = {}
+ for ii in elements:
+ reverse[ii] = ii
+ for jj in range(100):
+ assert len(l) >= 1
+ e = l[-1]
+ del reverse[e]
+ l.remove(e)
+
+ def f():
+ for ii in range(100):
+ dostuff()
+ return 0
+
+ fn = self.getcompiled(f)
+ res = fn()
+ assert res == 0
+
class TestAsmGCRootWithSemiSpaceGC(AbstractTestAsmGCRoot,
test_newgc.TestSemiSpaceGC):
More information about the Pypy-commit
mailing list