]> gcc.gnu.org Git - gcc.git/commit
assert_streq: add newlines to failure message
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 25 Oct 2021 21:16:07 +0000 (17:16 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 29 Oct 2021 20:52:12 +0000 (16:52 -0400)
commitebfc3a2304383edf7ccd50a327e380ee6a8afa43
tree9d9044643929d6bafd9db00a8182f83af708c993
parent26d82fe6fd4772ef1cc29867b58a6a97e9a7c820
assert_streq: add newlines to failure message

Adding newlines so that the two strings line up makes string equality
failures considerably easier to read.

gcc/ChangeLog:
* selftest.c (assert_streq): Add newlines when emitting non-equal
non-NULL strings.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/selftest.c
This page took 0.057383 seconds and 5 git commands to generate.