Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r70781:6f93f63d3bc1
Date: 2014-04-19 11:44 -0700
http://bitbucket.org/pypy/pypy/changeset/6f93f63d3bc1/
Log: ensure pypy_setup_home succeeds
diff --git a/pypy/interpreter/test/test_targetpypy.py
b/pypy/interpreter/test/test_targetpypy.py
--- a/pypy/interpreter/test/test_targetpypy.py
+++ b/pypy/interpreter/test/test_targetpypy.py
@@ -26,5 +26,7 @@
# did not crash - the same globals
pypy_setup_home = d['pypy_setup_home']
lls = rffi.str2charp(__file__)
- pypy_setup_home(lls, rffi.cast(rffi.INT, 1))
+ res = pypy_setup_home(lls, rffi.cast(rffi.INT, 1))
+ assert lltype.typeOf(res) == rffi.LONG
+ assert rffi.cast(lltype.Signed, res) == 0
lltype.free(lls, flavor='raw')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit