This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Make ubsan tests less picky about ansi escape codes in diagnostics.


The attached patch makes the ubsan tests agnostic to ansi escape codes in their diagnostic output.

Tested on an x86_64-linux-gnu target.

        2015-08-27  Jonathan Roelofs  <jonathan@codesourcery.com>

        * c-c++-common/ubsan/align-2.c: Don't be picky about ansi escape
        codes in diagnostics.
        * c-c++-common/ubsan/align-4.c: Ditto.
        * c-c++-common/ubsan/align-6.c: Ditto.
        * c-c++-common/ubsan/align-7.c: Ditto.
        * c-c++-common/ubsan/align-9.c: Ditto.
        * c-c++-common/ubsan/float-cast-overflow-2.c: Ditto.
        * c-c++-common/ubsan/float-cast-overflow-8.c: Ditto.
        * c-c++-common/ubsan/object-size-1.c: Ditto.
        * c-c++-common/ubsan/object-size-10.c: Ditto.
        * c-c++-common/ubsan/object-size-4.c: Ditto.
        * c-c++-common/ubsan/object-size-5.c: Ditto.
        * c-c++-common/ubsan/object-size-7.c: Ditto.
        * c-c++-common/ubsan/object-size-8.c: Ditto.
        * c-c++-common/ubsan/object-size-9.c: Ditto.
        * c-c++-common/ubsan/overflow-int128.c: Ditto.
        * c-c++-common/ubsan/pr63802.c: Ditto.

I do not have write access, so I'll need someone to commit this for me if it is approved.


Cheers,

Jon


--
Jon Roelofs
jonathan@codesourcery.com
CodeSourcery / Mentor Embedded

Attachment: relax_ubsan_tests.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]