Skip to content

test_set_pid fails on 32 bit architectures #98

@davide125

Description

@davide125
___________________________ TestProgram.test_set_pid ___________________________
self = <tests.test_program.TestProgram testMethod=test_set_pid>
    def test_set_pid(self):
        # Debug the running Python interpreter itself.
        prog = Program()
        self.assertIsNone(prog.platform)
        self.assertFalse(prog.flags & ProgramFlags.IS_LIVE)
        prog.set_pid(os.getpid())
        self.assertEqual(prog.platform, host_platform)
        self.assertTrue(prog.flags & ProgramFlags.IS_LIVE)
        data = b"hello, world!"
        buf = ctypes.create_string_buffer(data)
>       self.assertEqual(prog.read(ctypes.addressof(buf), len(data)), data)
E       OSError: [Errno 22] Invalid argument
tests/test_program.py:52: OSError

armv7hl failure: https://kojipkgs.fedoraproject.org//work/tasks/7502/65317502/build.log
i686 failure: https://kojipkgs.fedoraproject.org//work/tasks/7503/65317503/build.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions