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]

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


On Wed, Sep 9, 2015 at 11:11 PM, Mike Stump <mikestump@comcast.net> wrote:
> On Sep 3, 2015, at 9:45 AM, Jonathan Roelofs <jonathan@codesourcery.com> wrote:
>> Moral of the story is: these tests fail in our environment, but only because the regexes do not expect the presence of the ansi color codes, and we can't trick the runtime into not emitting them.
>
> When the user says, I donât want color; is color emitted?  If so, thatâs a bug, and needs to be fixed.  If the user can, then, dejagnu can.  When it says, donât use color, that should be respected; just as if the user had said it.  Anyway, a | decolor more a la prune should be able to remove color, even if there were no other way.

The issue is dejagnu cannot (at least in the current implementation of
the remotes), cannot set an env that stays alive before invoking the
program (though maybe it could use the env program to do the
invoking).

>
> Iâm not a fan of the changes as is.


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