Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/pypyjit/test_pypy_c/test_intbound.py::TestIntbound::()::test_intbound_addsub_mix::[93]

self = <pypy.module.pypyjit.test_pypy_c.test_intbound.TestIntbound object at 0x000000015182a9f8>
src = '\n                def f(i):\n                    a, b = 3, 3\n                    if i == 5:\n                       ...             for i in idx:\n                        res[f(i)] += 1\n                    return res\n\n                '
args = [], jitopts = {}

    def run_and_check(self, src, args=[], **jitopts):
>       log1 = self.run(src, args, threshold=-1)  # without the JIT

pypy/module/pypyjit/test_pypy_c/test_00_model.py:101: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pypy.module.pypyjit.test_pypy_c.test_intbound.TestIntbound object at 0x000000015182a9f8>
func_or_src = '\n                def f(i):\n                    a, b = 3, 3\n                    if i == 5:\n                       ...             for i in idx:\n                        res[f(i)] += 1\n                    return res\n\n                '
args = [], import_site = False, discard_stdout_before_last_line = False
jitopts = {'disable_unrolling': 9999, 'threshold': -1}
src = <py._code.source.Source object at 0x00000001523fa988>, funcname = 'main'
arglist = ''
f = <closed file '/tmp/buildbot-arm64/usession-main-1549/test-pypy-jit/test_intbound_addsub_mix.py', mode 'w' at 0x00000001302152a0>
logfile = local('/tmp/buildbot-arm64/usession-main-1549/test-pypy-jit/test_intbound_addsub_mix.log')
cmdline = ['/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/pypy/goal/pypy-c', '-S', '--jit', 'threshold=-1,disable_unrolling=9999', '/tmp/buildbot-arm64/usession-main-1549/test-pypy-jit/test_intbound_addsub_mix.py']
key = 'disable_unrolling'

    def run(self, func_or_src, args=[], import_site=False,
            discard_stdout_before_last_line=False, **jitopts):
        jitopts.setdefault('threshold', 200)
        jitopts.setdefault('disable_unrolling', 9999)
        src = py.code.Source(func_or_src)
        if isinstance(func_or_src, types.FunctionType):
            funcname = func_or_src.func_name
        else:
            funcname = 'main'
        # write the snippet
        arglist = ', '.join(map(repr, args))
        with self.filepath.open("w") as f:
            # we don't want to see the small bridges created
            # by the checkinterval reaching the limit
            f.write("import sys\n")
            f.write("sys.setcheckinterval(10000000)\n")
            f.write(str(src) + "\n")
            f.write("print %s(%s)\n" % (funcname, arglist))
        #
        # run a child pypy-c with logging enabled
        logfile = self.filepath.new(ext='.log')
        #
        cmdline = [sys.executable]
        if not import_site:
            cmdline.append('-S')
        if jitopts:
            jitcmdline = ['%s=%s' % (key, value)
                          for key, value in jitopts.items()]
            cmdline += ['--jit', ','.join(jitcmdline)]
        cmdline.append(str(self.filepath))
        #
        env = os.environ.copy()
        # TODO old logging system
        env['PYPYLOG'] = self.log_string + ':' + str(logfile)
        jitlogfile = str(logfile) + '.jlog'
        env['JITLOG'] = str(jitlogfile)
        pipe = subprocess.Popen(cmdline,
                                env=env,
                                stdout=subprocess.PIPE,
                                stderr=subprocess.PIPE)
        stdout, stderr = pipe.communicate()
        if pipe.wait() < 0:
            raise IOError("subprocess was killed by signal %d" % (
>               pipe.returncode,))
E           IOError: subprocess was killed by signal -10

pypy/module/pypyjit/test_pypy_c/test_00_model.py:71: IOError
builder: pypy-c-jit-macos-arm64 build #1405+
test: pypy/module/pypyjit/test_pypy_c/test_intbound.py::TestIntbound::()::test_intbound_addsub_mix::[93]