[pypy-svn] r48330 - in pypy/dist/pypy/translator/llvm: . test

santagada at codespeak.net santagada at codespeak.net
Tue Nov 6 10:59:17 CET 2007


Author: santagada
Date: Tue Nov  6 10:59:17 2007
New Revision: 48330

Modified:
   pypy/dist/pypy/translator/llvm/modwrapper.py
   pypy/dist/pypy/translator/llvm/test/runtest.py
Log:
All rint tests pass, turning off isolation for now to make it return more stuff. Probably exceptions are the next step

Modified: pypy/dist/pypy/translator/llvm/modwrapper.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/modwrapper.py	(original)
+++ pypy/dist/pypy/translator/llvm/modwrapper.py	Tue Nov  6 10:59:17 2007
@@ -35,6 +35,7 @@
 
     prolog = """
 import ctypes
+from pypy.rlib.rarithmetic import r_uint, r_longlong, r_ulonglong
 from os.path import join, dirname, realpath
 
 _c = ctypes.CDLL(join(dirname(realpath(__file__)), "%s"))
@@ -142,6 +143,7 @@
 ll_to_res = %(ll_to_res)s
 __entrypoint__.restype = %(returntype)s
     """
+    
     TO_CTYPES = {lltype.Bool: "ctypes.c_byte",
                  lltype.SingleFloat: "ctypes.c_float",
                  lltype.Float: "ctypes.c_double",
@@ -216,6 +218,15 @@
         elif T is lltype.UniChar:
             action = 'to_unichar'
 
+        elif T is lltype.Unsigned:
+            action = 'r_uint'
+
+        elif T is lltype.SignedLongLong:
+            action = 'r_longlong'
+
+        elif T is lltype.UnsignedLongLong:
+            action = 'r_ulonglong'
+
         elif isinstance(T, lltype.Ptr) and T.TO is STR:
             action = 'to_str'
 

Modified: pypy/dist/pypy/translator/llvm/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/runtest.py	Tue Nov  6 10:59:17 2007
@@ -15,10 +15,10 @@
 ext_modules = []
 
 # prevents resource leaking
-use_isolate = True
+use_isolate = False
 
 # if test can't be run using isolate, skip the test (useful for buildbots)
-run_isolated_only = True
+run_isolated_only = False
 
 from pypy import conftest
 



More information about the Pypy-commit mailing list