Commits

Carl Friedrich Bolz committed 792dd35

change this test to no longer use a virtual.

I checked that it's still testing what it is supposed to, by disabling the
logic in make_a_counter_per_value and seeing it fail.

  • Participants
  • Parent commits 8f7466d

Comments (0)

Files changed (1)

File rpython/jit/metainterp/test/test_ajit.py

         assert res == -2
 
     def test_guard_always_changing_value(self):
-        myjitdriver = JitDriver(greens = [], reds = ['x'])
+        myjitdriver = JitDriver(greens = [], reds = ['x', 'a'])
         class A:
             pass
         def f(x):
+            a = 0
             while x > 0:
-                myjitdriver.can_enter_jit(x=x)
-                myjitdriver.jit_merge_point(x=x)
-                a = A()
+                myjitdriver.can_enter_jit(x=x, a=a)
+                myjitdriver.jit_merge_point(x=x, a=a)
+                a += 1
                 promote(a)
                 x -= 1
         self.meta_interp(f, [50])