[pypy-commit] pypy kill-someobject: Fix test_standalone
arigo
noreply at buildbot.pypy.org
Fri Oct 12 16:46:24 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: kill-someobject
Changeset: r58055:928e2dc534be
Date: 2012-10-12 16:45 +0200
http://bitbucket.org/pypy/pypy/changeset/928e2dc534be/
Log: Fix test_standalone
diff --git a/pypy/translator/c/test/test_standalone.py b/pypy/translator/c/test/test_standalone.py
--- a/pypy/translator/c/test/test_standalone.py
+++ b/pypy/translator/c/test/test_standalone.py
@@ -131,14 +131,14 @@
os.write(1, str(tot))
return 0
from pypy.translator.interactive import Translation
- t = Translation(entry_point, backend='c', standalone=True)
+ t = Translation(entry_point, backend='c')
# no counters
t.backendopt(inline_threshold=100, profile_based_inline="500")
exe = t.compile()
out = py.process.cmdexec("%s 500" % exe)
assert int(out) == 500*501/2
- t = Translation(entry_point, backend='c', standalone=True)
+ t = Translation(entry_point, backend='c')
# counters
t.backendopt(inline_threshold=all.INLINE_THRESHOLD_FOR_TEST*0.5,
profile_based_inline="500")
@@ -171,13 +171,13 @@
return 0
from pypy.translator.interactive import Translation
# XXX this is mostly a "does not crash option"
- t = Translation(entry_point, backend='c', standalone=True, profopt="100")
+ t = Translation(entry_point, backend='c', profopt="100")
# no counters
t.backendopt()
exe = t.compile()
out = py.process.cmdexec("%s 500" % exe)
assert int(out) == 500*501/2
- t = Translation(entry_point, backend='c', standalone=True, profopt="100",
+ t = Translation(entry_point, backend='c', profopt="100",
noprofopt=True)
# no counters
t.backendopt()
@@ -208,12 +208,12 @@
return 0
from pypy.translator.interactive import Translation
# XXX this is mostly a "does not crash option"
- t = Translation(entry_point, backend='c', standalone=True, profopt="")
+ t = Translation(entry_point, backend='c', profopt="")
# no counters
t.backendopt()
exe = t.compile()
#py.process.cmdexec(exe)
- t = Translation(entry_point, backend='c', standalone=True, profopt="",
+ t = Translation(entry_point, backend='c', profopt="",
noprofopt=True)
# no counters
t.backendopt()
More information about the pypy-commit
mailing list