From: Renato Golin Date: Thu, 20 Oct 2016 17:41:08 +0000 (+0000) Subject: [clang-cl] Fix test that shouldn't be running on non-x86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=401aab913b16cc11dd256b3db7cb7f74ff6538f3;p=clang [clang-cl] Fix test that shouldn't be running on non-x86 The clang-cl test required x86-registered-target but it defaulted to the host's triple and AArch64 still doesn't support COFF, so the test failed. The triple was "aarch64-pc-windows-msvc18.0.0" with ObjectFormat equals llvm::Triple::COFF, failing assertion: Assertion `(TT.isOSBinFormatELF() || TT.isOSBinFormatMachO()) && "Only expect Darwin and ELF targets" in AArch64MCTargetDesc.cpp:78. Making the test only run on Windows hosts obviously fixes the problem. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284749 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/cl-pch.c b/test/Driver/cl-pch.c index bee25b3114..36d83a1124 100644 --- a/test/Driver/cl-pch.c +++ b/test/Driver/cl-pch.c @@ -1,4 +1,4 @@ -// REQUIRES: x86-registered-target +// REQUIRES: system-windows // // RUN: rm -rf %t // RUN: mkdir %t