[pypy-svn] r48888 - pypy/dist/pypy/jit/timeshifter/test

pedronis at codespeak.net pedronis at codespeak.net
Wed Nov 21 11:09:38 CET 2007


Author: pedronis
Date: Wed Nov 21 11:09:37 2007
New Revision: 48888

Modified:
   pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py
Log:
make sure the struct is initialized properly for the sake of the c backend for the i386 tests



Modified: pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py
==============================================================================
--- pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py	(original)
+++ pypy/dist/pypy/jit/timeshifter/test/test_timeshift.py	Wed Nov 21 11:09:37 2007
@@ -1191,7 +1191,7 @@
         T = lltype.Struct('T', ('x', lltype.Signed))
         A = lltype.Array(T)
         S = lltype.GcStruct('S', ('a', A))
-        s = lltype.malloc(S, 3)
+        s = lltype.malloc(S, 3, zero=True)
         s.a[2].x = 42
         def f(n):
             s1 = hint(s, variable=True)



More information about the Pypy-commit mailing list