testsuite: Disable colorization for ubsan test
authorKito Cheng <kito.cheng@sifive.com>
Tue, 2 Jun 2020 16:17:12 +0000 (10:17 -0600)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 2 Jun 2020 02:25:42 +0000 (10:25 +0800)
commit2b11374cb8d864dff3792e7c84188ba7e8f136e7
tree7089f3c028281aa426d1a3ee3eefbe51f56343bc
parentc2449995ca36ea955e3c6d4ee7f0d401b512c897
testsuite: Disable colorization for ubsan test

 - Run gcc testsuite with qemu will print out ascii color code for
   ubsan related testcase, however several testcase didn't consider
   that, so disable colorization prevent such problem and simplify the
   process when adding testcase in future.

 - Verified on native X86 and RISC-V qemu full system mode and user mode.

gcc/testsuite/ChangeLog:

* lib/ubsan-dg.exp (orig_ubsan_options_saved): New
(orig_ubsan_options): Ditto.
(ubsan_init): Store UBSAN_OPTIONS and set UBSAN_OPTIONS.
(ubsan_finish): Restore UBSAN_OPTIONS.
gcc/testsuite/lib/ubsan-dg.exp