Re: [PATCH] testsuite: Match ASCII color code for ubsan's test pattern.

2020-05-19 Thread Kito Cheng
Hi Jakub: > s/Ditoo/Ditto/g Thank for catching that. > I think I'd prefer instead exporting some env var for all the ubsan > tests in ubsan.exp that would disable the colorization. Sounds like it's a better solution, it seems like it can be disable by UBSAN_OPTIONS=color=never, I'll try and send

Re: [PATCH] testsuite: Match ASCII color code for ubsan's test pattern.

2020-05-19 Thread Jakub Jelinek via Gcc-patches
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 > > B

[PATCH] testsuite: Match ASCII color code for ubsan's test pattern.

2020-05-19 Thread Kito Cheng
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, did