2016-11-26 04:27:32 +08:00
|
|
|
# Windows command prompt doesn't support ANSI escape sequences.
|
|
|
|
# REQUIRES: shell
|
|
|
|
|
2016-12-22 16:20:28 +08:00
|
|
|
# RUN: not ld.lld -xyz -color-diagnostics /nosuchfile 2>&1 \
|
|
|
|
# RUN: | FileCheck -check-prefix=COLOR %s
|
2016-12-20 10:17:24 +08:00
|
|
|
# RUN: not ld.lld -xyz -color-diagnostics=always /nosuchfile 2>&1 \
|
2016-11-26 04:27:32 +08:00
|
|
|
# RUN: | FileCheck -check-prefix=COLOR %s
|
|
|
|
|
2019-08-07 16:08:17 +08:00
|
|
|
# COLOR: {{ld.lld: .\[0;31merror: .\[0munknown argument '-xyz'}}
|
|
|
|
# COLOR: {{ld.lld: .\[0;31merror: .\[0mcannot open /nosuchfile}}
|
2016-11-26 04:27:32 +08:00
|
|
|
|
2018-07-17 20:14:48 +08:00
|
|
|
# RUN: not ld.lld -color-diagnostics=foobar 2>&1 | FileCheck -check-prefix=ERR %s
|
|
|
|
# ERR: unknown option: --color-diagnostics=foobar
|
|
|
|
|
2016-12-22 16:20:28 +08:00
|
|
|
# RUN: not ld.lld /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
|
|
|
|
# RUN: not ld.lld -color-diagnostics=never /nosuchfile 2>&1 \
|
2016-11-26 04:27:32 +08:00
|
|
|
# RUN: | FileCheck -check-prefix=NOCOLOR %s
|
2016-12-22 16:20:28 +08:00
|
|
|
# RUN: not ld.lld -color-diagnostics=always -no-color-diagnostics \
|
|
|
|
# RUN: /nosuchfile 2>&1 | FileCheck -check-prefix=NOCOLOR %s
|
2016-11-26 04:27:32 +08:00
|
|
|
|
|
|
|
# NOCOLOR: ld.lld: error: cannot open /nosuchfile
|