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

jit/backend/aarch64/test/test_jitlog.py::TestJitlog::()::test_version

self = <rpython.jit.backend.aarch64.test.test_jitlog.TestJitlog instance at 0x0000000152751e20>
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x0000000152751de0>
tmpdir = local('/private/var/folders/p8/qyz0lmpd2mld64f_f4c66y4c0000gn/T/pytest-of-runner/pytest-0/test_version0')

    def test_version(self, monkeypatch, tmpdir):
        file = tmpdir.join('jitlog')
        monkeypatch.setattr(jl, 'JITLOG_VERSION_16BIT_LE', '\xff\xfe')
        monkeypatch.setenv(rjitlog.test_jitlog_name, file.strpath)
        f = self.run_sample_loop(None)
        self.meta_interp(f, [10, 0])
        assert os.path.exists(file.strpath)
        with file.open('rb') as fd:
            # check the file header
>           assert fd.read(3) == jl.MARK_JITLOG_HEADER + '\xff\xfe'
E           assert '' == '\x1e\xff\xfe'
E             + \x1e\xff\xfe

jit/backend/test/jitlog_test.py:51: AssertionError
---------- Captured stdout call ----------
	bh: goto_if_not_int_gt [0, 0, 36, 33] -> 36
	bh: int_return [<BHInterp <JitCode 'f'>>, 0] -> LeaveFrame!
~~~ return value: 0
---------- Captured stderr call ----------
[rtyper] -=- specialized 6 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 2 more blocks -=-
[rtyper] -=- specialized 7 more blocks -=-
[rtyper] -=- specialized 6 more blocks -=-
[rtyper] -=- specialized 17 more blocks -=-
[rtyper] -=- specialized 2 more blocks -=-
[rtyper] -=- specialized 3 more blocks -=-
[jitcodewriter:info] making JitCodes...
[jitcodewriter:info] There are 1 JitCode instances.
[jitcodewriter:info] There are 3 -live- ops. Size of liveness is 4 bytes
[jitcodewriter] compute_bitstrings:
[jitcodewriter]   1 effectinfos:
[jitcodewriter]     0 descrs for arrays
[jitcodewriter]     0 descrs for fields
[jitcodewriter]     0 descrs for interiorfields
[jitcodewriter] -> 1 bitstrings, mean length 0.0, max length 0
 (somefailed=True in jit/backend/aarch64/test/test_jitlog.py)
builder: rpython-macos-arm64 build #627*
test: jit/backend/aarch64/test/test_jitlog.py::TestJitlog::()::test_version