[pypy-svn] r32669 - pypy/dist/pypy/translator/c/test
mwh at codespeak.net
mwh at codespeak.net
Wed Sep 27 16:37:43 CEST 2006
Author: mwh
Date: Wed Sep 27 16:37:41 2006
New Revision: 32669
Modified:
pypy/dist/pypy/translator/c/test/test_lltyped.py
Log:
it seems someone didn't really have their brain plugged in when trying to make
test_union pass on a big endian system :)
Modified: pypy/dist/pypy/translator/c/test/test_lltyped.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_lltyped.py (original)
+++ pypy/dist/pypy/translator/c/test/test_lltyped.py Wed Sep 27 16:37:41 2006
@@ -244,13 +244,13 @@
hints={'union': True})
u = malloc(U, immortal=True)
def llf(c=int):
- u.s = 0x1020
+ u.s = 0x10203040
u.c = chr(c)
return u.s
fn = self.getcompiled(llf)
res = fn(0x33)
- assert res in [0x1033, 0x3320]
+ assert res in [0x10203033, 0x33203040]
def test_sizeof_void_array(self):
from pypy.rpython.lltypesystem import llmemory
More information about the Pypy-commit
mailing list