On Tue, May 19, 2020 at 05:13:39PM +0800, Kito Cheng wrote:
> Run gcc testsuite with qemu will print out ascii color code like that:
> 
> ^[[1mc-c++-common/ubsan/builtin-1.c:11:10:^[[1m^[[31m runtime error: 
> ^[[1m^[[0m^[[1mpassing zero to ctz(), which is not a valid 
> argument^[[1m^[[0m^M
> 
> But the match logic in some testcase e.g c-c++-common/ubsan/builtin-1.c, 
> didn't
> consider that:
> 
> (\[^\n\r]*runtime error: passing zero to ctz\\\(\\\), which is not a valid 
> argument\[^\n\r]*(\n|\r\n|\r)){4}
> 
>  - Verified on native X86 and RISC-V qemu full system mode and user mode.

s/Ditoo/Ditto/g
I think I'd prefer instead exporting some env var for all the ubsan
tests in ubsan.exp that would disable the colorization.

        Jakub

Reply via email to