Author: Armin Rigo <[email protected]>
Branch:
Changeset: r110:ec1fe577a446
Date: 2013-06-12 23:05 +0200
http://bitbucket.org/pypy/stmgc/changeset/ec1fe577a446/
Log: fixes
diff --git a/c4/test/test_random.py b/c4/test/test_random.py
--- a/c4/test/test_random.py
+++ b/c4/test/test_random.py
@@ -112,6 +112,9 @@
self.dump('expecting abort: %r' % (e,))
self.expected_abort()
lib.setptr(r.ptr, index, p.ptr) # should abort
+ # didn't? try again by first clearing the fxcache
+ lib.stm_clear_read_cache()
+ lib.setptr(r.ptr, index, p.ptr)
raise MissingAbort
lib.setptr(r.ptr, index, p.ptr) # must not abort
@@ -175,6 +178,9 @@
# abort! try to reproduce with C code
self.expected_abort()
lib.stm_write_barrier(p.ptr) # should abort
+ # didn't? try again by first clearing the fxcache
+ lib.stm_clear_read_cache()
+ lib.stm_write_barrier(p.ptr)
raise MissingAbort
nptr = lib.stm_write_barrier(p.ptr)
@@ -481,5 +487,5 @@
def test_more_multi_thread():
#py.test.skip("more random tests")
- for i in range(9, 1000):
+ for i in range(12, 1000):
yield test_multi_thread, i
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit