[Bug jit/69435] Truncated lines in jit.log

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 20 15:33:32 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69435

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alex Coplan <acoplan@gcc.gnu.org>:

https://gcc.gnu.org/g:8764e9a3fc43f1117db77d1f056b6c3f15a29db3

commit r11-2228-g8764e9a3fc43f1117db77d1f056b6c3f15a29db3
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Mon Jul 20 16:15:29 2020 +0100

    jit: Fix truncation of testsuite output [PR69435]

    This fixes a bug in jit.exp which causes the DejaGnu output of the
    libgccjit testsuite to be nondeterministically truncated. This bug was
    copied from DejaGnu's own implementation of the host_execute function.
    See the upstream bug report [0] where the maintainers point out that the
    regex patterns in host_execute should (but don't currently) explicitly
    match newlines to avoid relying on DejaGnu not reading more than one
    line of the output (which is not guaranteed).

    This should make it easier to test jit patches in the future, since it
    makes it possible to reliably compare the output of two jit.sum files
    (as with the other tests in GCC).

    [0] : https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42399

    gcc/testsuite/
            PR jit/69435
            * jit.dg/jit.exp (fixed_host_execute): Fix regex patterns to
            always explicitly match newlines.


More information about the Gcc-bugs mailing list