[pypy-commit] pypy stm: Fix the test.

arigo noreply at buildbot.pypy.org
Fri Sep 30 22:42:34 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r47729:48df9339565e
Date: 2011-09-27 22:28 +0200
http://bitbucket.org/pypy/pypy/changeset/48df9339565e/

Log:	Fix the test.

diff --git a/pypy/translator/stm/test/test_rffi_stm.py b/pypy/translator/stm/test/test_rffi_stm.py
--- a/pypy/translator/stm/test/test_rffi_stm.py
+++ b/pypy/translator/stm/test/test_rffi_stm.py
@@ -38,9 +38,9 @@
     def callback1(x):
         assert a.x == -611
         p = lltype.direct_fieldptr(a, 'x')
-        p = rffi.cast(rffi.VOIDPP, p)
+        p = rffi.cast(SignedP, p)
         assert rffi.cast(lltype.Signed, stm_read_word(p)) == -611
-        stm_write_word(p, rffi.cast(rffi.VOIDP, 42 * a.y))
+        stm_write_word(p, 42 * a.y)
         assert rffi.cast(lltype.Signed, stm_read_word(p)) == 42 * a.y
         assert a.x == -611 # xxx still the old value when reading non-transact.
         if a.y < 10:


More information about the pypy-commit mailing list