[pypy-commit] pypy stm-gc: Remove the part of the test handling thread-locals
arigo
noreply at buildbot.pypy.org
Sun Apr 29 14:35:54 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54805:6e370cf3d797
Date: 2012-04-29 14:25 +0200
http://bitbucket.org/pypy/pypy/changeset/6e370cf3d797/
Log: Remove the part of the test handling thread-locals
diff --git a/pypy/translator/stm/test/test_ztranslated.py b/pypy/translator/stm/test/test_ztranslated.py
--- a/pypy/translator/stm/test/test_ztranslated.py
+++ b/pypy/translator/stm/test/test_ztranslated.py
@@ -72,22 +72,22 @@
R = lltype.GcStruct('R', ('x', lltype.Signed))
S1 = lltype.Struct('S1', ('r', lltype.Ptr(R)))
s1 = lltype.malloc(S1, immortal=True, flavor='raw')
- S2 = lltype.Struct('S2', ('r', lltype.Ptr(R)),
- hints={'stm_thread_local': True})
- s2 = lltype.malloc(S2, immortal=True, flavor='raw')
+ #S2 = lltype.Struct('S2', ('r', lltype.Ptr(R)),
+ # hints={'stm_thread_local': True})
+ #s2 = lltype.malloc(S2, immortal=True, flavor='raw')
def do_stuff():
rstm.run_all_transactions(DoNothing())
print s1.r.x
- print s2.r.x
+ #print s2.r.x
do_stuff._dont_inline_ = True
def main(argv):
s1.r = lltype.malloc(R)
s1.r.x = 42
- s2.r = lltype.malloc(R)
- s2.r.x = 43
+ #s2.r = lltype.malloc(R)
+ #s2.r.x = 43
do_stuff()
return 0
#
t, cbuilder = self.compile(main)
data = cbuilder.cmdexec('')
- assert '42\n43\n' in data, "got: %r" % (data,)
+ assert '42\n' in data, "got: %r" % (data,)
More information about the pypy-commit
mailing list