Commits

mattip committed 2d8eaa5

skip if no asmgcc

  • Participants
  • Parent commits 415af85

Comments (0)

Files changed (1)

File rpython/jit/backend/llsupport/test/zrpy_gc_test.py

 """
 
 import weakref
-import os
+import os, py
 from rpython.rlib import rgc
 from rpython.rtyper.lltypesystem import lltype
 from rpython.rlib.jit import JitDriver, dont_look_inside
 from rpython.jit.backend.llsupport.gc import GcLLDescr_framework
 from rpython.tool.udir import udir
 from rpython.config.translationoption import DEFL_GC
+from rpython.config.config import ConfigError
 
 
 class X(object):
             cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
                                    gcrootfinder=cls.gcrootfinder, jit=True,
                                    thread=True)
+        except ConfigError, e:        
+            assert str(e).startswith('invalid value asmgcc')
+            py.test.skip('asmgcc not supported')
         finally:
             GcLLDescr_framework.DEBUG = OLD_DEBUG