IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32.
llvm-svn: 269870
diff --git a/clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp b/clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp
index e69a408..e36edf6 100644
--- a/clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp
+++ b/clang-tools-extra/unittests/include-fixer/IncludeFixerTest.cpp
@@ -129,9 +129,11 @@
#ifndef _WIN32
// It doesn't pass for targeting win32. Investigating.
TEST(IncludeFixer, NestedName) {
+ // Some tests don't pass for target *-win32.
+ std::vector<std::string> args = {"-target", "x86_64-unknown-unknown"};
EXPECT_EQ("#include \"dir/otherdir/qux.h\"\n"
"int x = a::b::foo(0);\n",
- runIncludeFixer("int x = a::b::foo(0);\n"));
+ runIncludeFixer("int x = a::b::foo(0);\n", args));
// FIXME: Handle simple macros.
EXPECT_EQ("#define FOO a::b::foo\nint x = FOO;\n",
@@ -141,7 +143,7 @@
EXPECT_EQ("#include \"dir/otherdir/qux.h\"\n"
"namespace a {}\nint a = a::b::foo(0);\n",
- runIncludeFixer("namespace a {}\nint a = a::b::foo(0);\n"));
+ runIncludeFixer("namespace a {}\nint a = a::b::foo(0);\n", args));
}
#endif