Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 676
    • Issues 676
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPyPyPy
  • pypypypy
  • Issues
  • #2173
Closed
Open
Issue created Oct 23, 2015 by Bitbucket Importer@bitbucket_importerMaintainer

PPC test case failure: rpython/rlib/test/test_streamio.py fails on PPC64LE machine

Created originally on Bitbucket by vaibhavsood12 (Vaibhav Sood)

Ran the test on a Ubuntu 14.10 PPC64LE machine (same test passes on a Ubuntu 14.10 x86-64 machine):

./pytest.py -rfExs rpython/rlib/test/test_streamio.py

Get the following failure log (trace snipped to show only failure part):

#!python

=================================================================================== FAILURES ====================================================================================
______________________________________________________________________ TestDiskFile.test_write_interrupted ______________________________________________________________________

self = <rpython.rlib.test.test_streamio.TestDiskFile instance at 0x3fff7d8f1e60>

    def test_write_interrupted(self):
        try:
            from signal import alarm, signal, SIG_DFL, SIGALRM
        except ImportError:
            pytest.skip('no alarm on this platform')
        try:
            read_fd, write_fd = os.pipe()
            file = streamio.DiskFile(write_fd)
            def handler(*a):
                os.read(read_fd, 2000)
                alarm(1)
            signal(SIGALRM, handler)
            alarm(1)
            # Write to the pipe until it is full
            buf = "FILL THE PIPE" * 1000
            while True:
>               if os.write(write_fd, buf) < len(buf):
E               OSError: [Errno 4] Interrupted system call

rpython/rlib/test/test_streamio.py:1098: OSError
============================================================================ short test summary info ============================================================================
FAIL rpython/rlib/test/test_streamio.py::TestDiskFile::()::test_write_interrupted
Edited May 13, 2021 by Stefano Rivera
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking