bootstrap: fix failing diagnostic selftest on Windows [PR98696]
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 15 Jan 2021 18:26:39 +0000 (13:26 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 15 Jan 2021 18:26:39 +0000 (13:26 -0500)
commita3128bf01289a243a9e0ebb4e34c23bcb04cb938
tree3d934c670ba4d4a8d250761ac6fd03d4f44d8373
parentadb520606ce3e1e1f8aa8c5d0c59a5f3196fc545
bootstrap: fix failing diagnostic selftest on Windows [PR98696]

In one of the selftests in g:f10960558540636800cf5d3d6355969621fbc17e
I didn't consider that paths can contain backslashes, which happens
for the tempfiles on Windows hosts.

gcc/ChangeLog:
PR bootstrap/98696
* diagnostic.c
(selftest::test_print_parseable_fixits_bytes_vs_display_columns):
Escape the tempfile name when constructing the expected output.
gcc/diagnostic.c