jit/backend/aarch64/test/test_jitlog.py::TestJitlog::()::test_version
self = <rpython.jit.backend.aarch64.test.test_jitlog.TestJitlog instance at 0x0000000132c162a0>
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x0000000132c16260>
tmpdir = local('/private/var/folders/8d/778wjbv96mq1760tv6gk374m0000gn/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 #626*
test: jit/backend/aarch64/test/test_jitlog.py::TestJitlog::()::test_version