[Symbolize] Fix llvm-symbolizer --filter-markup test on Windows.
The tests use in-band ANSI color codes, while the Windows cmd console uses an out-of-band interface for color.
This commit is contained in:
parent
d58b5a0614
commit
7598a42e2a
|
@ -0,0 +1,21 @@
|
|||
UNSUPPORTED: system-windows
|
||||
|
||||
RUN: echo -e "a{{{symbol:foo}}}b\n{{{symbol:bar}}}\n" > %t.input
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color < %t.input > %t.color
|
||||
RUN: FileCheck %s --check-prefix=COLOR --input-file=%t.color --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=auto < %t.input > %t.autocolor
|
||||
RUN: FileCheck %s --check-prefix=NOCOLOR --input-file=%t.autocolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=never < %t.input > %t.nevercolor
|
||||
RUN: FileCheck %s --check-prefix=NOCOLOR --input-file=%t.nevercolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=always < %t.input > %t.alwayscolor
|
||||
RUN: FileCheck %s --check-prefix=COLOR --input-file=%t.alwayscolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
NOCOLOR: afoob
|
||||
NOCOLOR: bar
|
||||
|
||||
COLOR: a{{.}}[0;34mfoo{{.}}[0mb
|
||||
COLOR: {{.}}[0;34mbar{{.}}[0m
|
|
@ -1,21 +1,6 @@
|
|||
RUN: echo -e "a{{{symbol:foo}}}b\n{{{symbol:bar}}}\n" > %t.input
|
||||
RUN: llvm-symbolizer --filter-markup < %t.input > %t.nocolor
|
||||
RUN: FileCheck %s --check-prefix=NOCOLOR --input-file=%t.nocolor --match-full-lines --implicit-check-not {{.}}
|
||||
RUN: llvm-symbolizer --filter-markup < %t.input > %t.output
|
||||
RUN: FileCheck %s --input-file=%t.output --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
NOCOLOR: afoob
|
||||
NOCOLOR: bar
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color < %t.input > %t.color
|
||||
RUN: FileCheck %s --check-prefix=COLOR --input-file=%t.color --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=auto < %t.input > %t.autocolor
|
||||
RUN: FileCheck %s --check-prefix=NOCOLOR --input-file=%t.autocolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=never < %t.input > %t.nevercolor
|
||||
RUN: FileCheck %s --check-prefix=NOCOLOR --input-file=%t.nevercolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
RUN: llvm-symbolizer --filter-markup --color=always < %t.input > %t.alwayscolor
|
||||
RUN: FileCheck %s --check-prefix=COLOR --input-file=%t.alwayscolor --match-full-lines --implicit-check-not {{.}}
|
||||
|
||||
COLOR: a{{.}}[0;34mfoo{{.}}[0mb
|
||||
COLOR: {{.}}[0;34mbar{{.}}[0m
|
||||
CHECK: afoob
|
||||
CHECK: bar
|
||||
|
|
Loading…
Reference in New Issue