Skip to content

Build-Test-Linux

Build-Test-Linux #57

GitHub Actions / Test Results failed Oct 2, 2024 in 0s

82 fail, 1 242 skipped, 10 745 pass in 14m 47s

12 069 tests   10 745 ✅  14m 47s ⏱️
     1 suites   1 242 💤
     1 files        82 ❌

Results for commit 52910b4.

Annotations

Check warning on line 0 in test_armv8_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_madd_sub64[7323459679479944746-7323459679479944746-7323459679479944746-7323459679479944746] (test_armv8_isn) failed

out/pytest_report.xml [took 0s]
Raw output
subprocess.CalledProcessError: Command '['aarch64-linux-gnu-as', '-o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.S']' returned non-zero exit status 1.
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990')
op64 = 7323459679479944746, op64_ = 7323459679479944746
op64__ = 7323459679479944746, op64___ = 7323459679479944746

    def test_madd_sub64(tmpdir, op64, op64_, op64__, op64___):
        asm = """
                mov x0, #{op64}
                mov x1, #{op64_}
                mov x2, #{op64__}
                mov x3, #{op64___}
                madd x0, x1, x2, x3
        """.format(**locals())
>       compare(tmpdir, asm, ["x0","x1", "x2", "x3"])

test_armv8_isn.py:164: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
util.py:275: in compare
    bctest = self.make_bc_test(tmpdir, asm)
util.py:182: in make_bc_test
    return BCTest(self, tmpdir, asm)
util.py:123: in __init__
    self.rawlisting, self.filename, self.opcodes = self.arch.assemble(tmpdir, asm)
util.py:333: in assemble
    subprocess.check_call(self.AS + ["-o", str(obj), str(inf)])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['aarch64-linux-gnu-as', '-o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.S'],)
kwargs = {}, retcode = 1
cmd = ['aarch64-linux-gnu-as', '-o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.S']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['aarch64-linux-gnu-as', '-o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.o', '/tmp/pytest-of-root/pytest-0/test_madd_sub64_732345967947990/arm-as-399/asm.S']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:369: CalledProcessError

Check warning on line 0 in test_powerpc64_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_store_std[] (test_powerpc64_isn) failed

out/pytest_report.xml [took 0s]
Raw output
Failed: test_store_std: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes']' died with <Signals.SIGSEGV: 11>.
   0:	7c 08 02 a6 	mflr    r0
   4:	38 20 00 b8 	li      r1,184
   8:	38 80 00 18 	li      r4,24
   c:	7c 21 20 30 	slw     r1,r1,r4
  10:	f8 01 00 10 	std     r0,16(r1)
self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std__0')
asm = '\n    mflr %r0\n    li %r1, 0xb8\n    li %r4, 24\n    slw %r1, %r1, %r4\n    std %r0, 0x10(%r1)\n    '
regs = ['r0', 'r1'], reg_taints = {}, top_allowed = {}

    def compare(self, tmpdir, asm, regs=None, reg_taints={}, top_allowed={}):
        testname = inspect.stack()[1][3]
        hline = "\n=========================\n"
        if regs is None:
            regs = self.ALL_REGS
    
        bctest = self.make_bc_test(tmpdir, asm)
        bincat = self.run_bc_test(bctest, testname)
    
        try:
>           cpu = self.cpu_run(tmpdir, bctest.filename)

util.py:279: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std__0')
opcodesfname = '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes'

    def cpu_run(self, tmpdir, opcodesfname):
        eggloader = os.path.join(os.path.dirname(os.path.realpath(__file__)), self.EGGLOADER)
        cmd = [eggloader, opcodesfname]
        if self.QEMU:
            cmd = self.QEMU + cmd
>       out = subprocess.check_output(cmd)

util.py:345: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

timeout = None
popenargs = (['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes'],)
kwargs = {}

    def check_output(*popenargs, timeout=None, **kwargs):
        r"""Run command with arguments and return its output.
    
        If the exit code was non-zero it raises a CalledProcessError.  The
        CalledProcessError object will have the return code in the returncode
        attribute and output in the output attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        >>> check_output(["ls", "-l", "/dev/null"])
        b'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'
    
        The stdout argument is not allowed as it is used internally.
        To capture standard error in the result, use stderr=STDOUT.
    
        >>> check_output(["/bin/sh", "-c",
        ...               "ls -l non_existent_file ; exit 0"],
        ...              stderr=STDOUT)
        b'ls: non_existent_file: No such file or directory\n'
    
        There is an additional optional argument, "input", allowing you to
        pass a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it too will be used internally.  Example:
    
        >>> check_output(["sed", "-e", "s/foo/bar/"],
        ...              input=b"when in the course of fooman events\n")
        b'when in the course of barman events\n'
    
        By default, all communication is in bytes, and therefore any "input"
        should be bytes, and the return value will be bytes.  If in text mode,
        any "input" should be a string, and the return value will be a string
        decoded according to locale encoding, or by "encoding" if set. Text mode
        is triggered by setting any of text, encoding, errors or universal_newlines.
        """
        if 'stdout' in kwargs:
            raise ValueError('stdout argument not allowed, it will be overridden.')
    
        if 'input' in kwargs and kwargs['input'] is None:
            # Explicitly passing input=None was previously equivalent to passing an
            # empty string. That is maintained here for backwards compatibility.
            if kwargs.get('universal_newlines') or kwargs.get('text') or kwargs.get('encoding') \
                    or kwargs.get('errors'):
                empty = ''
            else:
                empty = b''
            kwargs['input'] = empty
    
>       return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
                   **kwargs).stdout

/usr/lib/python3.10/subprocess.py:421: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes'],)
kwargs = {'stdout': -1}
process = <Popen: returncode: -11 args: ['qemu-ppc64', '/install/bincat/test/eggloader...>
stdout = b'', stderr = None, retcode = -11

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes']' died with <Signals.SIGSEGV: 11>.

/usr/lib/python3.10/subprocess.py:526: CalledProcessError

During handling of the above exception, another exception occurred:

tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std__0'), op = ''

    @pytest.mark.parametrize("op", ["", "u"])
    def test_store_std(tmpdir, op):
        asm = """
        mflr %r0
        li %r1, 0xb8
        li %r4, 24
        slw %r1, %r1, %r4
        std{op} %r0, 0x10(%r1)
        """.format(**locals())
>       compare(tmpdir, asm, ["r0", "r1"])

test_powerpc64_isn.py:738: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std__0')
asm = '\n    mflr %r0\n    li %r1, 0xb8\n    li %r4, 24\n    slw %r1, %r1, %r4\n    std %r0, 0x10(%r1)\n    '
regs = ['r0', 'r1'], reg_taints = {}, top_allowed = {}

    def compare(self, tmpdir, asm, regs=None, reg_taints={}, top_allowed={}):
        testname = inspect.stack()[1][3]
        hline = "\n=========================\n"
        if regs is None:
            regs = self.ALL_REGS
    
        bctest = self.make_bc_test(tmpdir, asm)
        bincat = self.run_bc_test(bctest, testname)
    
        try:
            cpu = self.cpu_run(tmpdir, bctest.filename)
        except subprocess.CalledProcessError as e:
>           pytest.fail("%s: %s\n%s" % (testname, e, bctest.listing))
E           Failed: test_store_std: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std__0/powerpc64-as-4780/opcodes']' died with <Signals.SIGSEGV: 11>.
E              0:	7c 08 02 a6 	mflr    r0
E              4:	38 20 00 b8 	li      r1,184
E              8:	38 80 00 18 	li      r4,24
E              c:	7c 21 20 30 	slw     r1,r1,r4
E             10:	f8 01 00 10 	std     r0,16(r1)

util.py:281: Failed

Check warning on line 0 in test_powerpc64_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_store_std[u] (test_powerpc64_isn) failed

out/pytest_report.xml [took 0s]
Raw output
Failed: test_store_std: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes']' died with <Signals.SIGSEGV: 11>.
   0:	7c 08 02 a6 	mflr    r0
   4:	38 20 00 b8 	li      r1,184
   8:	38 80 00 18 	li      r4,24
   c:	7c 21 20 30 	slw     r1,r1,r4
  10:	f8 01 00 11 	stdu    r0,16(r1)
self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std_u_0')
asm = '\n    mflr %r0\n    li %r1, 0xb8\n    li %r4, 24\n    slw %r1, %r1, %r4\n    stdu %r0, 0x10(%r1)\n    '
regs = ['r0', 'r1'], reg_taints = {}, top_allowed = {}

    def compare(self, tmpdir, asm, regs=None, reg_taints={}, top_allowed={}):
        testname = inspect.stack()[1][3]
        hline = "\n=========================\n"
        if regs is None:
            regs = self.ALL_REGS
    
        bctest = self.make_bc_test(tmpdir, asm)
        bincat = self.run_bc_test(bctest, testname)
    
        try:
>           cpu = self.cpu_run(tmpdir, bctest.filename)

util.py:279: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std_u_0')
opcodesfname = '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes'

    def cpu_run(self, tmpdir, opcodesfname):
        eggloader = os.path.join(os.path.dirname(os.path.realpath(__file__)), self.EGGLOADER)
        cmd = [eggloader, opcodesfname]
        if self.QEMU:
            cmd = self.QEMU + cmd
>       out = subprocess.check_output(cmd)

util.py:345: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

timeout = None
popenargs = (['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes'],)
kwargs = {}

    def check_output(*popenargs, timeout=None, **kwargs):
        r"""Run command with arguments and return its output.
    
        If the exit code was non-zero it raises a CalledProcessError.  The
        CalledProcessError object will have the return code in the returncode
        attribute and output in the output attribute.
    
        The arguments are the same as for the Popen constructor.  Example:
    
        >>> check_output(["ls", "-l", "/dev/null"])
        b'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'
    
        The stdout argument is not allowed as it is used internally.
        To capture standard error in the result, use stderr=STDOUT.
    
        >>> check_output(["/bin/sh", "-c",
        ...               "ls -l non_existent_file ; exit 0"],
        ...              stderr=STDOUT)
        b'ls: non_existent_file: No such file or directory\n'
    
        There is an additional optional argument, "input", allowing you to
        pass a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it too will be used internally.  Example:
    
        >>> check_output(["sed", "-e", "s/foo/bar/"],
        ...              input=b"when in the course of fooman events\n")
        b'when in the course of barman events\n'
    
        By default, all communication is in bytes, and therefore any "input"
        should be bytes, and the return value will be bytes.  If in text mode,
        any "input" should be a string, and the return value will be a string
        decoded according to locale encoding, or by "encoding" if set. Text mode
        is triggered by setting any of text, encoding, errors or universal_newlines.
        """
        if 'stdout' in kwargs:
            raise ValueError('stdout argument not allowed, it will be overridden.')
    
        if 'input' in kwargs and kwargs['input'] is None:
            # Explicitly passing input=None was previously equivalent to passing an
            # empty string. That is maintained here for backwards compatibility.
            if kwargs.get('universal_newlines') or kwargs.get('text') or kwargs.get('encoding') \
                    or kwargs.get('errors'):
                empty = ''
            else:
                empty = b''
            kwargs['input'] = empty
    
>       return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
                   **kwargs).stdout

/usr/lib/python3.10/subprocess.py:421: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes'],)
kwargs = {'stdout': -1}
process = <Popen: returncode: -11 args: ['qemu-ppc64', '/install/bincat/test/eggloader...>
stdout = b'', stderr = None, retcode = -11

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes']' died with <Signals.SIGSEGV: 11>.

/usr/lib/python3.10/subprocess.py:526: CalledProcessError

During handling of the above exception, another exception occurred:

tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std_u_0'), op = 'u'

    @pytest.mark.parametrize("op", ["", "u"])
    def test_store_std(tmpdir, op):
        asm = """
        mflr %r0
        li %r1, 0xb8
        li %r4, 24
        slw %r1, %r1, %r4
        std{op} %r0, 0x10(%r1)
        """.format(**locals())
>       compare(tmpdir, asm, ["r0", "r1"])

test_powerpc64_isn.py:738: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <util.PowerPC64 object at 0x7ffaa9243cd0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_store_std_u_0')
asm = '\n    mflr %r0\n    li %r1, 0xb8\n    li %r4, 24\n    slw %r1, %r1, %r4\n    stdu %r0, 0x10(%r1)\n    '
regs = ['r0', 'r1'], reg_taints = {}, top_allowed = {}

    def compare(self, tmpdir, asm, regs=None, reg_taints={}, top_allowed={}):
        testname = inspect.stack()[1][3]
        hline = "\n=========================\n"
        if regs is None:
            regs = self.ALL_REGS
    
        bctest = self.make_bc_test(tmpdir, asm)
        bincat = self.run_bc_test(bctest, testname)
    
        try:
            cpu = self.cpu_run(tmpdir, bctest.filename)
        except subprocess.CalledProcessError as e:
>           pytest.fail("%s: %s\n%s" % (testname, e, bctest.listing))
E           Failed: test_store_std: Command '['qemu-ppc64', '/install/bincat/test/eggloader_powerpc64', '/tmp/pytest-of-root/pytest-0/test_store_std_u_0/powerpc64-as-4781/opcodes']' died with <Signals.SIGSEGV: 11>.
E              0:	7c 08 02 a6 	mflr    r0
E              4:	38 20 00 b8 	li      r1,184
E              8:	38 80 00 18 	li      r4,24
E              c:	7c 21 20 30 	slw     r1,r1,r4
E             10:	f8 01 00 11 	stdu    r0,16(r1)

util.py:281: Failed

Check warning on line 0 in test_powerpc64_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ld[] (test_powerpc64_isn) failed

out/pytest_report.xml [took 0s]
Raw output
subprocess.CalledProcessError: Command '['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.S']' returned non-zero exit status 1.
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_ld__0'), op = ''

    @pytest.mark.parametrize("op", ["", "u"])
    def test_ld(tmpdir, op):
        asm = """
        mflr %r0
        li %r1, 0x0
        addi %r1, %r1, 0xb8000000
        ld{op} %r0, 0x7010(%r1)
        """.format(**locals())
>       compare(tmpdir, asm, ["r0", "r1"])

test_powerpc64_isn.py:748: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
util.py:275: in compare
    bctest = self.make_bc_test(tmpdir, asm)
util.py:182: in make_bc_test
    return BCTest(self, tmpdir, asm)
util.py:123: in __init__
    self.rawlisting, self.filename, self.opcodes = self.arch.assemble(tmpdir, asm)
util.py:333: in assemble
    subprocess.check_call(self.AS + ["-o", str(obj), str(inf)])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.o', ...],)
kwargs = {}, retcode = 1
cmd = ['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.o', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.o', '/tmp/pytest-of-root/pytest-0/test_ld__0/powerpc64-as-4782/asm.S']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:369: CalledProcessError

Check warning on line 0 in test_powerpc64_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ld[u] (test_powerpc64_isn) failed

out/pytest_report.xml [took 0s]
Raw output
subprocess.CalledProcessError: Command '['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.S']' returned non-zero exit status 1.
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_ld_u_0'), op = 'u'

    @pytest.mark.parametrize("op", ["", "u"])
    def test_ld(tmpdir, op):
        asm = """
        mflr %r0
        li %r1, 0x0
        addi %r1, %r1, 0xb8000000
        ld{op} %r0, 0x7010(%r1)
        """.format(**locals())
>       compare(tmpdir, asm, ["r0", "r1"])

test_powerpc64_isn.py:748: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
util.py:275: in compare
    bctest = self.make_bc_test(tmpdir, asm)
util.py:182: in make_bc_test
    return BCTest(self, tmpdir, asm)
util.py:123: in __init__
    self.rawlisting, self.filename, self.opcodes = self.arch.assemble(tmpdir, asm)
util.py:333: in assemble
    subprocess.check_call(self.AS + ["-o", str(obj), str(inf)])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.o', ...],)
kwargs = {}, retcode = 1
cmd = ['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.o', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['powerpc64-linux-gnu-as', '-many', '-mpower9', '-mbig', '-o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.o', '/tmp/pytest-of-root/pytest-0/test_ld_u_0/powerpc64-as-4783/asm.S']' returned non-zero exit status 1.

/usr/lib/python3.10/subprocess.py:369: CalledProcessError

Check warning on line 0 in test_x86_isn

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_misc_push_segs_sel (test_x86_isn) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: test_misc_push_segs_sel: (eax(top), ebx(top), ecx(top), edx(top))
=========================

=========================
+ top allowed:  eax = 00000023 ? 00000000
+ bincat     :  eax = 00000023 ? ffff0000  Value(, 00000023,?=FFFF0000 ! 00000000,?=FFFF0000)
+ top allowed:  ebx = 0000002b ? 00000000
+ bincat     :  ebx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
+ top allowed:  ecx = 0000002b ? 00000000
+ bincat     :  ecx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
+ top allowed:  edx = 0000002b ? 00000000
+ bincat     :  edx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
=========================
  both  :  eax = 00000023  Value(, 00000023,?=FFFF0000 ! 00000000,?=FFFF0000)
  both  :  ebx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
  both  :  ecx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
  both  :  edx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
  both  :  edi = 00000000  Value(, 00000000 ! 00000000)
  both  :  esi = 00000063  Value(, 00000063 ! 00000000)
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_misc_push_segs_sel1')

    def test_misc_push_segs_sel(tmpdir):
        asm = """
                push 0
                pop eax
                push 0
                pop ebx
                push 0
                pop ecx
                push 0
                pop edx
                push 0
                pop edi
                push 0
                pop esi
    
                push cs
                pop eax
                push ds
                pop ebx
                push ss
                pop ecx
                push es
                pop edx
                push fs
                pop edi
                push gs
                pop esi
              """
>       compare(tmpdir, asm, ["eax", "ebx", "ecx", "edx", "edi", "esi"])

test_x86_isn.py:1364: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <util.X86 object at 0x7ffaa7240490>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_misc_push_segs_sel1')
asm = '\n            push 0\n            pop eax\n            push 0\n            pop ebx\n            push 0\n            p...s\n            pop edx\n            push fs\n            pop edi\n            push gs\n            pop esi\n          '
regs = ['eax', 'ebx', 'ecx', 'edx', 'edi', 'esi'], reg_taints = {}
top_allowed = {}

    def compare(self, tmpdir, asm, regs=None, reg_taints={}, top_allowed={}):
        testname = inspect.stack()[1][3]
        hline = "\n=========================\n"
        if regs is None:
            regs = self.ALL_REGS
    
        bctest = self.make_bc_test(tmpdir, asm)
        bincat = self.run_bc_test(bctest, testname)
    
        try:
            cpu = self.cpu_run(tmpdir, bctest.filename)
        except subprocess.CalledProcessError as e:
            pytest.fail("%s: %s\n%s" % (testname, e, bctest.listing))
    
        diff = []
        same = []
        diff_summary = []
        for r in regs:
            regspec = r.split(":")
            r = regspec[0]
            rl = (cfa.reg_len(r)+3)//4
            bitfield = regspec[1:]
            mask = self.bf2mask(bitfield)
            maskstring = "" if mask == -1 else f" (mask={mask:0{rl}x})"
            vtop = bincat[r].vtop
            value = bincat[r].value
            if cpu[r] & ~vtop & mask != value & ~vtop & mask:
                diff.append(f"- cpu   :  {r} = {cpu[r]:0{rl}x}")
                diff.append(f"+ bincat:  {r} = {value:0{rl}x}  {bincat[r]}")
                diff_summary.append(r)
            else:
                same.append(f"  both  :  {r} = {value:0{rl}x}  {bincat[r]}{maskstring}")
            allow_top = top_allowed.get(r, 0)
            if vtop & ~allow_top & mask:
                diff.append(f"+ top allowed:  {r} = {cpu[r]:0{rl}x} ? {allow_top:0{rl}x}")
                diff.append(f"+ bincat     :  {r} = {value:0{rl}x} ? {vtop:0{rl}x}  {bincat[r]}")
                diff_summary.append("%s(top)" % r)
>       assert not diff, ("%s: (%s)" % (testname, ", ".join(diff_summary))
                          + hline
                          + bctest.listing
                          + hline
                          + "\n".join(diff)
                          + hline
                          + "\n".join(same))
E       AssertionError: test_misc_push_segs_sel: (eax(top), ebx(top), ecx(top), edx(top))
E       =========================
E       
E       =========================
E       + top allowed:  eax = 00000023 ? 00000000
E       + bincat     :  eax = 00000023 ? ffff0000  Value(, 00000023,?=FFFF0000 ! 00000000,?=FFFF0000)
E       + top allowed:  ebx = 0000002b ? 00000000
E       + bincat     :  ebx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E       + top allowed:  ecx = 0000002b ? 00000000
E       + bincat     :  ecx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E       + top allowed:  edx = 0000002b ? 00000000
E       + bincat     :  edx = 0000002b ? ffff0000  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E       =========================
E         both  :  eax = 00000023  Value(, 00000023,?=FFFF0000 ! 00000000,?=FFFF0000)
E         both  :  ebx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E         both  :  ecx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E         both  :  edx = 0000002b  Value(, 0000002B,?=FFFF0000 ! 00000000,?=FFFF0000)
E         both  :  edi = 00000000  Value(, 00000000 ! 00000000)
E         both  :  esi = 00000063  Value(, 00000063 ! 00000000)

util.py:306: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[5---x-0] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%5x]'
  
assert 'TEST[    0]' == 'TEST[00000]'
  - TEST[00000]
  + TEST[    0]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_5___x_0_0')
val = 0, fmt = 'x', mod = '', zeropad = '', sz = '5'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%5x]'
E         
E       assert 'TEST[    0]' == 'TEST[00000]'
E         - TEST[00000]
E         + TEST[    0]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[5---x-1] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%5x]'
  
assert 'TEST[    1]' == 'TEST[00001]'
  - TEST[00001]
  + TEST[    1]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_5___x_1_0')
val = 1, fmt = 'x', mod = '', zeropad = '', sz = '5'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%5x]'
E         
E       assert 'TEST[    1]' == 'TEST[00001]'
E         - TEST[00001]
E         + TEST[    1]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[5---x-498] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%5x]'
  
assert 'TEST[  1f2]' == 'TEST[001f2]'
  - TEST[001f2]
  ?      ^^
  + TEST[  1f2]
  ?      ^^
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_5___x_498_0')
val = 498, fmt = 'x', mod = '', zeropad = '', sz = '5'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%5x]'
E         
E       assert 'TEST[  1f2]' == 'TEST[001f2]'
E         - TEST[001f2]
E         ?      ^^
E         + TEST[  1f2]
E         ?      ^^

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[5---x-8100] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%5x]'
  
assert 'TEST[ 1fa4]' == 'TEST[01fa4]'
  - TEST[01fa4]
  ?      ^
  + TEST[ 1fa4]
  ?      ^
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_5___x_8100_0')
val = 8100, fmt = 'x', mod = '', zeropad = '', sz = '5'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%5x]'
E         
E       assert 'TEST[ 1fa4]' == 'TEST[01fa4]'
E         - TEST[01fa4]
E         ?      ^
E         + TEST[ 1fa4]
E         ?      ^

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[8---x-0] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%8x]'
  
assert 'TEST[       0]' == 'TEST[00000000]'
  - TEST[00000000]
  + TEST[       0]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_8___x_0_0')
val = 0, fmt = 'x', mod = '', zeropad = '', sz = '8'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%8x]'
E         
E       assert 'TEST[       0]' == 'TEST[00000000]'
E         - TEST[00000000]
E         + TEST[       0]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[8---x-1] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%8x]'
  
assert 'TEST[       1]' == 'TEST[00000001]'
  - TEST[00000001]
  + TEST[       1]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_8___x_1_0')
val = 1, fmt = 'x', mod = '', zeropad = '', sz = '8'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%8x]'
E         
E       assert 'TEST[       1]' == 'TEST[00000001]'
E         - TEST[00000001]
E         + TEST[       1]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[8---x-498] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%8x]'
  
assert 'TEST[     1f2]' == 'TEST[000001f2]'
  - TEST[000001f2]
  + TEST[     1f2]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_8___x_498_0')
val = 498, fmt = 'x', mod = '', zeropad = '', sz = '8'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%8x]'
E         
E       assert 'TEST[     1f2]' == 'TEST[000001f2]'
E         - TEST[000001f2]
E         + TEST[     1f2]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[8---x-8100] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%8x]'
  
assert 'TEST[    1fa4]' == 'TEST[00001fa4]'
  - TEST[00001fa4]
  + TEST[    1fa4]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_8___x_8100_0')
val = 8100, fmt = 'x', mod = '', zeropad = '', sz = '8'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%8x]'
E         
E       assert 'TEST[    1fa4]' == 'TEST[00001fa4]'
E         - TEST[00001fa4]
E         + TEST[    1fa4]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[8---x-4585074] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%8x]'
  
assert 'TEST[  45f672]' == 'TEST[0045f672]'
  - TEST[0045f672]
  ?      ^^
  + TEST[  45f672]
  ?      ^^
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_8___x_4585074_0')
val = 4585074, fmt = 'x', mod = '', zeropad = '', sz = '8'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%8x]'
E         
E       assert 'TEST[  45f672]' == 'TEST[0045f672]'
E         - TEST[0045f672]
E         ?      ^^
E         + TEST[  45f672]
E         ?      ^^

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-0] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[            0]' == 'TEST[0000000000000]'
  - TEST[0000000000000]
  + TEST[            0]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_0_0')
val = 0, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[            0]' == 'TEST[0000000000000]'
E         - TEST[0000000000000]
E         + TEST[            0]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-1] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[            1]' == 'TEST[0000000000001]'
  - TEST[0000000000001]
  + TEST[            1]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_1_0')
val = 1, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[            1]' == 'TEST[0000000000001]'
E         - TEST[0000000000001]
E         + TEST[            1]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-498] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[          1f2]' == 'TEST[00000000001f2]'
  - TEST[00000000001f2]
  + TEST[          1f2]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_498_0')
val = 498, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[          1f2]' == 'TEST[00000000001f2]'
E         - TEST[00000000001f2]
E         + TEST[          1f2]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-8100] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[         1fa4]' == 'TEST[0000000001fa4]'
  - TEST[0000000001fa4]
  + TEST[         1fa4]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_8100_0')
val = 8100, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[         1fa4]' == 'TEST[0000000001fa4]'
E         - TEST[0000000001fa4]
E         + TEST[         1fa4]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-4585074] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[       45f672]' == 'TEST[000000045f672]'
  - TEST[000000045f672]
  + TEST[       45f672]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_45850740')
val = 4585074, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[       45f672]' == 'TEST[000000045f672]'
E         - TEST[000000045f672]
E         + TEST[       45f672]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-2185624125] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[     8245fa3d]' == 'TEST[000008245fa3d]'
  - TEST[000008245fa3d]
  + TEST[     8245fa3d]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_21856240')
val = 2185624125, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[     8245fa3d]' == 'TEST[000008245fa3d]'
E         - TEST[000008245fa3d]
E         + TEST[     8245fa3d]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_num[13---x-4294967295] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%13x]'
  
assert 'TEST[     ffffffff]' == 'TEST[00000ffffffff]'
  - TEST[00000ffffffff]
  + TEST[     ffffffff]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_num_13___x_42949670')
val = 4294967295, fmt = 'x', mod = '', zeropad = '', sz = '13'

    @pytest.mark.parametrize("val", [0, 1, 0x1f2, 0x1fa4, 0x45f672, 0x8245fa3d, 0xffffffff])
    @pytest.mark.parametrize("fmt", [pytest.param("i", marks=pytest.mark.xfail),
                                     "x",
                                     pytest.param("d", marks=pytest.mark.xfail),
                                     pytest.param("lx", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("mod", ["",
                                     pytest.param("+", marks=pytest.mark.xfail),
                                     pytest.param("-", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("zeropad", ["", "0"])
    @pytest.mark.parametrize("sz", ["", "1", "5", "8", "13"])
    def test_printf_num(tmpdir, val, fmt, mod, zeropad, sz):
        fmtstr = "TEST[%{mod}{zeropad}{sz}{fmt}]".format(**locals())
        asm = """
            push {val:#x}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout().strip(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%13x]'
E         
E       assert 'TEST[     ffffffff]' == 'TEST[00000ffffffff]'
E         - TEST[00000ffffffff]
E         + TEST[     ffffffff]

test_x86_stubs.py:36: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_string[--] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%s]'
  
assert 'TEST[]' == 'TEST[]\n'
  - TEST[]
  ?       -
  + TEST[]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_string____0'), val = ''
numl = '', numr = ''

    @pytest.mark.parametrize("numl", ["",
                                      pytest.param("0", marks=pytest.mark.xfail),
                                      "2", "5"])
    @pytest.mark.parametrize("numr", ["",
                                      pytest.param(".0", marks=pytest.mark.xfail),
                                      pytest.param(".2", marks=pytest.mark.xfail),
                                      pytest.param(".5", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("val", ["", "abc", "abcdefghi"])
    def test_printf_string(tmpdir, val, numl, numr):
        fmtstr = "TEST[%{numl}{numr}s]".format(**locals())
        asm = """
            push 0x300      ; {val!r}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.initfile.set_mem(0x300, val+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%s]'
E         
E       assert 'TEST[]' == 'TEST[]\n'
E         - TEST[]
E         ?       -
E         + TEST[]

test_x86_stubs.py:63: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_string[--2] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%2s]'
  
assert 'TEST[  ]' == 'TEST[\n'
  - TEST[
  + TEST[  ]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_string___2_0')
val = '', numl = '2', numr = ''

    @pytest.mark.parametrize("numl", ["",
                                      pytest.param("0", marks=pytest.mark.xfail),
                                      "2", "5"])
    @pytest.mark.parametrize("numr", ["",
                                      pytest.param(".0", marks=pytest.mark.xfail),
                                      pytest.param(".2", marks=pytest.mark.xfail),
                                      pytest.param(".5", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("val", ["", "abc", "abcdefghi"])
    def test_printf_string(tmpdir, val, numl, numr):
        fmtstr = "TEST[%{numl}{numr}s]".format(**locals())
        asm = """
            push 0x300      ; {val!r}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.initfile.set_mem(0x300, val+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%2s]'
E         
E       assert 'TEST[  ]' == 'TEST[\n'
E         - TEST[
E         + TEST[  ]

test_x86_stubs.py:63: AssertionError

Check warning on line 0 in test_x86_stubs

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_printf_string[--5] (test_x86_stubs) failed

out/pytest_report.xml [took 0s]
Raw output
AssertionError: 'TEST[%5s]'
  
assert 'TEST[     ]' == 'TEST[\n'
  - TEST[
  + TEST[     ]
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_printf_string___5_0')
val = '', numl = '5', numr = ''

    @pytest.mark.parametrize("numl", ["",
                                      pytest.param("0", marks=pytest.mark.xfail),
                                      "2", "5"])
    @pytest.mark.parametrize("numr", ["",
                                      pytest.param(".0", marks=pytest.mark.xfail),
                                      pytest.param(".2", marks=pytest.mark.xfail),
                                      pytest.param(".5", marks=pytest.mark.xfail)])
    @pytest.mark.parametrize("val", ["", "abc", "abcdefghi"])
    def test_printf_string(tmpdir, val, numl, numr):
        fmtstr = "TEST[%{numl}{numr}s]".format(**locals())
        asm = """
            push 0x300      ; {val!r}
            push 0x200      ; {fmt!r}
            call 0x80000000
        """.format(val=val, fmt=fmtstr)
    
        bc = x86.make_bc_test(tmpdir, asm)
        bc.initfile.set_mem(0x200, fmtstr+"\0")
        bc.initfile.set_mem(0x300, val+"\0")
        bc.run()
    
        expected = fmtstr % val
    
>       assert expected == bc.get_stdout(), (repr(fmtstr)+"\n"+bc.listing)
E       AssertionError: 'TEST[%5s]'
E         
E       assert 'TEST[     ]' == 'TEST[\n'
E         - TEST[
E         + TEST[     ]

test_x86_stubs.py:63: AssertionError