[pypy-commit] stmgc default: other test

Raemi noreply at buildbot.pypy.org
Thu Aug 15 18:27:35 CEST 2013


Author: Remi Meier <remi.meier at gmail.com>
Branch: 
Changeset: r480:e1a459d18ba1
Date: 2013-08-15 18:26 +0200
http://bitbucket.org/pypy/stmgc/changeset/e1a459d18ba1/

Log:	other test

diff --git a/c4/test/test_extra.py b/c4/test/test_extra.py
--- a/c4/test/test_extra.py
+++ b/c4/test/test_extra.py
@@ -167,6 +167,16 @@
     assert p1o == ffi.cast("gcptr", pid)
     assert follow_original(p1o) == ffi.NULL
     
-
+def test_bug2():
+    p = oalloc(HDR+WORD)
+    
+    def cb(c):
+        if c == 0:
+            pw = lib.stm_write_barrier(p)
+            abort_and_retry()
+    lib.stm_push_root(p)
+    perform_transaction(cb)
+    p = lib.stm_pop_root()
+    assert follow_original(p) == ffi.NULL
 
     


More information about the pypy-commit mailing list