brintos

brintos / llvm-project-archived public Read only

0
0
Text · 945 B · ad201fa Raw
22 lines · plain
1# Windows command prompt doesn't support ANSI escape sequences.2# UNSUPPORTED: system-windows3 4# RUN: not ld.lld -xyz --color-diagnostics /nosuchfile 2>&1 \5# RUN:   | FileCheck -check-prefix=COLOR %s6# RUN: not ld.lld -xyz --color-diagnostics=always /nosuchfile 2>&1 \7# RUN:   | FileCheck -check-prefix=COLOR %s8 9# COLOR: {{ld.lld: .\[0;31merror: .\[0munknown argument '-xyz'}}10# COLOR: {{ld.lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}11 12# RUN: not ld.lld --color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s13# ERR: unknown option: --color-diagnostics=foobar14 15# RUN: not ld.lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s16# RUN: not ld.lld --color-diagnostics=never /nosuchfile 2>&1 \17# RUN:   | FileCheck -check-prefix=NOCOLOR %s18# RUN: not ld.lld --color-diagnostics=always --no-color-diagnostics \19# RUN:   /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s20 21# NOCOLOR: ld.lld: error: cannot open /nosuchfile22