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] Fix sanitizer tests to work under QEMU


On Tue, Apr 15, 2014 at 10:49:48AM +0400, Maxim Ostapenko wrote:
> Some ASan and UBSan pattern match tests fail under QEMU, because
> libsanitizer adds escape sequences which confuse Dejagnu (because it
> thinks that it is actually running under a tty). This bug was
> already fixed for some tests (see
> http://gcc.gnu.org/ml/gcc-patches/2013-04/msg00235.html and
> http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00319.html).
> 
> This patch fixes problem for newly added tests in the same way as before.
> 
> Tested on x86_64-unknown-linux-gnu and arm-linux-gnueabi (both ssh
> and qemu).

It is unfortunate there is no way to forcefully disable the colorization,
e.g. through some env var.
It would be also nice if there was a way to tell the library to colorize
more like GCC colorizes its output rather than clang.

> Ok to commit?

Ok for trunk.

	Jakub


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