Armin Rigo committed 89cbe26

A minimal test for the previous checkin. That's the effect that we
really want, but the test is really a unit test only.

  • Participants
  • Parent commits d1878a4
  • Branches remove-globals-in-jit

Comments (0)

Files changed (1)

File pypy/rpython/memory/gctransform/test/

 from pypy.annotation.model import SomeInteger
 from pypy.objspace.flow.model import Constant, SpaceOperation
 from pypy.rpython.lltypesystem import lltype, rffi
+from pypy.rpython.lltypesystem.lloperation import llop
 from pypy.rpython.memory.gc.semispace import SemiSpaceGC
 from pypy.rpython.memory.gctransform.framework import (CollectAnalyzer,
      find_initializing_stores, find_clean_setarrayitems)
     gg = graphof(t, g)
     assert CollectAnalyzer(t).analyze_direct_call(gg)
+def test_cancollect_some_operation():
+    def g():
+        llop.gc_set_extra_threshold(lltype.Void, 32)
+    t = rtype(g, [])
+    gg = graphof(t, g)
+    assert CollectAnalyzer(t).analyze_direct_call(gg)
 def test_no_collect():
     from pypy.rlib import rgc
     from pypy.translator.c.genc import CStandaloneBuilder