diff --git a/clang/test/Misc/diag-template-diffing-color.cpp b/clang/test/Misc/diag-template-diffing-color.cpp index fc100e30ddfe..6903e848d3df 100644 --- a/clang/test/Misc/diag-template-diffing-color.cpp +++ b/clang/test/Misc/diag-template-diffing-color.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -fcolor-diagnostics %s 2>&1 | FileCheck %s // RUN: %clang_cc1 -fsyntax-only -fcolor-diagnostics -fdiagnostics-show-template-tree %s 2>&1 | FileCheck %s -check-prefix=TREE -// XFAIL: mingw32,win32 +// REQUIRES: ansi-escape-sequences template struct foo {}; void func(foo); int main() { diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 738dc38e5bd5..1fc6059326d8 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -222,6 +222,10 @@ if platform.system() not in ['FreeBSD']: if platform.system() not in ['Windows'] or lit.getBashPath() != '': config.available_features.add('shell') +# ANSI escape sequences in non-dump terminal +if platform.system() not in ['Windows']: + config.available_features.add('ansi-escape-sequences') + # Registered Targets def get_llc_props(tool): set_of_targets = set()