19 lines · plain
1# Windows command prompt doesn't support ANSI escape sequences.2# UNSUPPORTED: system-windows3 4# RUN: not lld-link -xyz --color-diagnostics /nosuchfile 2>&1 \5# RUN: | FileCheck -check-prefix=COLOR %s6# RUN: not lld-link -xyz --color-diagnostics=always /nosuchfile 2>&1 \7# RUN: | FileCheck -check-prefix=COLOR %s8 9# COLOR: {{lld-link: .\[0;35mwarning: .\[0mignoring unknown argument '-xyz'}}10# COLOR: {{lld-link: .\[0;31merror: .\[0mcould not open '/nosuchfile'}}11 12# RUN: not lld-link /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s13# RUN: not lld-link -color-diagnostics=never /nosuchfile 2>&1 \14# RUN: | FileCheck -check-prefix=NOCOLOR %s15# RUN: not lld-link -color-diagnostics=always -no-color-diagnostics \16# RUN: /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s17 18# NOCOLOR: lld-link: error: could not open '/nosuchfile'19