[pypy-svn] pypy 32ptr-on-64bit: Write a test.
arigo
commits-noreply at bitbucket.org
Thu Mar 17 19:45:18 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: 32ptr-on-64bit
Changeset: r42769:a068a8ba6d68
Date: 2011-03-17 14:44 -0400
http://bitbucket.org/pypy/pypy/changeset/a068a8ba6d68/
Log: Write a test.
diff --git a/pypy/jit/backend/x86/test/test_zrpy_gc.py b/pypy/jit/backend/x86/test/test_zrpy_gc.py
--- a/pypy/jit/backend/x86/test/test_zrpy_gc.py
+++ b/pypy/jit/backend/x86/test/test_zrpy_gc.py
@@ -5,7 +5,7 @@
soon as possible (at least in a simple case).
"""
-import weakref, random
+import weakref, random, sys
import py
from pypy.annotation import policy as annpolicy
from pypy.rlib import rgc
@@ -19,7 +19,6 @@
from pypy.tool.udir import udir
from pypy.jit.backend.x86.arch import IS_X86_64
from pypy.config.translationoption import DEFL_GC
-import py.test
class X(object):
def __init__(self, x=0):
@@ -129,6 +128,8 @@
class TestCompileFramework(object):
# Test suite using (so far) the minimark GC.
+ EXTRA_PARAMS = {}
+
def setup_class(cls):
funcs = []
name_to_func = {}
@@ -178,7 +179,8 @@
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), DEFL_GC,
- gcrootfinder="asmgcc", jit=True)
+ gcrootfinder="asmgcc", jit=True,
+ **cls.EXTRA_PARAMS)
finally:
GcLLDescr_framework.DEBUG = OLD_DEBUG
@@ -576,3 +578,12 @@
def test_compile_framework_minimal_size_in_nursery(self):
self.run('compile_framework_minimal_size_in_nursery')
+
+
+class TestCompressPtr(TestCompileFramework):
+ EXTRA_PARAMS = {'compressptr': True}
+
+ def setup_class(cls):
+ if sys.maxint == 2147483647:
+ py.test.skip("for 64-bit only")
+ TestCompileFramework.setup_class.im_func(cls)
More information about the Pypy-commit
mailing list