• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Windows command prompt doesn't support ANSI escape sequences.
2# REQUIRES: shell
3
4# RUN: not %lld -xyz --color-diagnostics /nosuchfile 2>&1 \
5# RUN:   | FileCheck -check-prefix=COLOR %s
6# RUN: not %lld -xyz --color-diagnostics=always /nosuchfile 2>&1 \
7# RUN:   | FileCheck -check-prefix=COLOR %s
8
9# COLOR: {{lld: .\[0;31merror: .\[0munknown argument '-xyz'}}
10# COLOR: {{lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}
11
12# RUN: not %lld --color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s
13# ERR: unknown option: --color-diagnostics=foobar
14
15# RUN: not %lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
16# RUN: not %lld --color-diagnostics=never /nosuchfile 2>&1 \
17# RUN:   | FileCheck -check-prefix=NOCOLOR %s
18# RUN: not %lld --color-diagnostics=always --no-color-diagnostics \
19# RUN:   /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
20
21# NOCOLOR: lld: error: cannot open /nosuchfile
22