]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/color-diagnostics.test
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / color-diagnostics.test
1 # Windows command prompt doesn't support ANSI escape sequences.
2 # REQUIRES: shell
3
4 # RUN: not ld.lld -xyz -color-diagnostics /nosuchfile 2>&1 \
5 # RUN:   | FileCheck -check-prefix=COLOR %s
6 # RUN: not ld.lld -xyz -color-diagnostics=always /nosuchfile 2>&1 \
7 # RUN:   | FileCheck -check-prefix=COLOR %s
8
9 # COLOR: {{ld.lld: .\[0;1;31merror: .\[0munknown argument: -xyz}}
10 # COLOR: {{ld.lld: .\[0;1;31merror: .\[0mcannot open /nosuchfile}}
11
12 # RUN: not ld.lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
13 # RUN: not ld.lld -color-diagnostics=never /nosuchfile 2>&1 \
14 # RUN:   | FileCheck -check-prefix=NOCOLOR %s
15 # RUN: not ld.lld -color-diagnostics=always -no-color-diagnostics \
16 # RUN:   /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
17
18 # NOCOLOR: ld.lld: error: cannot open /nosuchfile