cffi_tests.embedding.test_tlocal.TestThreadLocal:test_thread_local
self = <extra_tests.cffi_tests.embedding.test_tlocal.TestThreadLocal instance at 0x00007f90ba9910e0>
def test_thread_local(self):
tlocal_cffi = self.prepare_module('tlocal')
self.compile('tlocal-test', [tlocal_cffi], threads=True)
for i in range(10):
> output = self.execute('tlocal-test')
../build/extra_tests/cffi_tests/embedding/test_tlocal.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <extra_tests.cffi_tests.embedding.test_tlocal.TestThreadLocal instance at 0x00007f90ba9910e0>
name = 'tlocal-test'
def execute(self, name):
path = self.get_path()
print('running %r in %r' % (name, path))
executable_name = name
if sys.platform == 'win32':
executable_name = os.path.join(path, executable_name + '.exe')
else:
executable_name = os.path.join('.', executable_name)
popen = self._run_base([executable_name], cwd=path,
stdout=subprocess.PIPE,
universal_newlines=True)
result, _ = popen.communicate()
err = popen.returncode
if err:
raise OSError("%r failed with exit code %r" % (
> os.path.join(path, executable_name), err))
E OSError: '/tmp/buildbot-x86_64/ffi-0/embedding/test_thread_local/./tlocal-test' failed with exit code -6
../build/extra_tests/cffi_tests/embedding/test_basic.py:177: OSError
builder: pypy-c-jit-macos-x86-64 build #1279+
test: cffi_tests.embedding.test_tlocal.TestThreadLocal:test_thread_local