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

pypy/module/termios/test/test_termios.py::TestTermios::()::test_tcsetattr

self = <test_termios.TestTermios object at 0x000000013289c790>

    def test_tcsetattr(self):
        # The last element of the third parameter for termios.tcsetattr()
        # can't be a constant, because it varies from one OS to another.
        # (Its length must be 32 on Linux, 20 on MacOSX, for example.)
        # Use termios.tcgetattr() to get a value that will hopefully be
        # valid for whatever OS we are running on right now.
        source = py.code.Source("""
            import sys
            import termios
            cc = termios.tcgetattr(sys.stdin)[-1]
            termios.tcsetattr(sys.stdin, 1, [16640, 4, 191, 2608, 15, 15, cc])
            print('ok!')
            """)
        f = udir.join("test_tcsetattr.py")
        f.write(source)
        child = self.spawn(['--withmod-termios', str(f)])
>       child.expect('ok!')

module/termios/test/test_termios.py:86: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../virt_test/site-packages/pexpect/spawnbase.py:355: in expect
    timeout, searchwindowsize, async_)
../virt_test/site-packages/pexpect/spawnbase.py:383: in expect_list
    return exp.expect_loop(timeout)
../virt_test/site-packages/pexpect/expect.py:179: in expect_loop
    return self.eof(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pexpect.expect.Expecter object at 0x000000013289c6e8>
err = EOF('End Of File (EOF). Empty string style platform.',)

    def eof(self, err=None):
        spawn = self.spawn
    
        spawn.before = spawn._before.getvalue()
        spawn._buffer = spawn.buffer_type()
        spawn._before = spawn.buffer_type()
        spawn.after = EOF
        index = self.searcher.eof_index
        if index >= 0:
            spawn.match = EOF
            spawn.match_index = index
            return index
        else:
            spawn.match = None
            spawn.match_index = None
            msg = str(spawn)
            msg += '\nsearcher: %s' % self.searcher
            if err is not None:
                msg = str(err) + '\n' + msg
    
            exc = EOF(msg)
            exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
>           raise exc
E           EOF: End Of File (EOF). Empty string style platform.
E           <pexpect.pty_spawn.spawn object at 0x000000013289c2c0>
E           command: /Users/matti/build-worker-arm64/own-macos-arm64/build/virt_test/bin/python
E           args: ['/Users/matti/build-worker-arm64/own-macos-arm64/build/virt_test/bin/python', '/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '/tmp/buildbot-arm64/usession-py3.11-4024/test_tcsetattr.py']
E           buffer (last 100 chars): ''
E           before (last 100 chars): ' 4303716992\r\npython(95771,0x1fd49cc80) malloc: *** set a breakpoint in malloc_error_break to debug\r\n'
E           after: <class 'pexpect.exceptions.EOF'>
E           match: None
E           match_index: None
E           exitstatus: None
E           flag_eof: True
E           pid: 95771
E           child_fd: 17
E           closed: False
E           timeout: 600
E           delimiter: <class 'pexpect.exceptions.EOF'>
E           logfile: <_pytest.capture.EncodedFile object at 0x00000001202c34b0>
E           logfile_read: None
E           logfile_send: None
E           maxread: 5000
E           ignorecase: False
E           searchwindowsize: None
E           delaybeforesend: 0.05
E           delayafterclose: 0.1
E           delayafterterminate: 0.1
E           searcher: searcher_re:
E               0: re.compile('ok!')

../virt_test/site-packages/pexpect/expect.py:122: EOF
---------- Captured stdout call ----------
SPAWN: ('/Users/matti/build-worker-arm64/own-macos-arm64/build/virt_test/bin/python', ['/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/bin/pyinteractive.py', '-S', '--withmod-termios', '/tmp/buildbot-arm64/usession-py3.11-4024/test_tcsetattr.py']) {}
python(95771,0x1fd49cc80) malloc: Heap corruption detected, free list is damaged at 0x600000b5c2a0
*** Incorrect guard value: 4303716992
python(95771,0x1fd49cc80) malloc: *** set a breakpoint in malloc_error_break to debug
builder: own-macos-arm64 build #1206
test: pypy/module/termios/test/test_termios/py/TestTermios/()/test_tcsetattr