Author: Remi Meier
Branch: c7-refactor
Changeset: r784:35224c1ca388
Date: 2014-02-19 15:49 +0100
http://bitbucket.org/pypy/stmgc/changeset/35224c1ca388/
Log: also randomly allocate number of refs per object (no effects so far)
diff --git a/c7/test/test_random.py b/c7/test/test_random.py
--- a/c7/test/test_random.py
+++ b/c7/test/test_random.py
@@ -265,7 +265,8 @@
def do(self, ex, global_state, thread_state):
r = get_new_root_name(True)
thread_state.push_roots(ex)
- ex.do('%s = stm_allocate_refs(1)' % r)
+ num = global_state.rnd.randrange(1, 10)
+ ex.do('%s = stm_allocate_refs(%s)' % (r, num))
assert thread_state.transaction_state.write_root(r, "ffi.NULL") is None
thread_state.pop_roots(ex)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit