New issue 2171: PPC test case failure:
rpython/rtyper/lltypesystem/test/test_llarena.py fails on PPC64LE machine
https://bitbucket.org/pypy/pypy/issues/2171/ppc-test-case-failure-rpython-rtyper
Vaibhav Sood:
Ran the test on a Ubuntu 14.10 PPC64LE machine (same test passes on a Ubuntu
14.10 x86-64 machine):
./pytest.py -rfExs rpython/rtyper/lltypesystem/test/test_llarena.py
Get the following failure log (trace snipped to show only failure part):
```
#!python
rpython/rtyper/lltypesystem/test/test_llarena.py:337:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _
self = <rpython.translator.c.genc.CStandaloneBuilder object at 0x3fff8e19ce50>,
args = '1', env = None, err = False, expect_crash = True
exe = local('/tmp/usession-default-181/testing_2/testing_2')
def cmdexec(self, args='', env=None, err=False, expect_crash=False,
exe=None):
assert self._compiled
if sys.platform == 'win32':
#Prevent opening a dialog box
import ctypes
winapi = ctypes.windll.kernel32
SetErrorMode = winapi.SetErrorMode
SetErrorMode.argtypes=[ctypes.c_int]
SEM_FAILCRITICALERRORS = 1
SEM_NOGPFAULTERRORBOX = 2
SEM_NOOPENFILEERRORBOX = 0x8000
flags = SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX \
| SEM_NOOPENFILEERRORBOX
#Since there is no GetErrorMode, do a double Set
old_mode = SetErrorMode(flags)
SetErrorMode(old_mode | flags)
if env is None:
envrepr = ''
else:
envrepr = ' [env=%r]' % (env,)
if exe is None:
exe = self.executable_name
log.cmdexec('%s %s%s' % (exe, args, envrepr))
res = self.translator.platform.execute(exe, args, env=env)
if sys.platform == 'win32':
SetErrorMode(old_mode)
if res.returncode != 0:
if expect_crash:
return res.out, res.err
print >> sys.stderr, res.err
raise Exception("Returned %d" % (res.returncode,))
if expect_crash:
> raise Exception("Program did not crash!")
E Exception: Program did not crash!
```
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue