IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32.

llvm-svn: 269870
This commit is contained in:
NAKAMURA Takumi 2016-05-18 00:20:46 +00:00
parent 1997856936
commit 62e8ec5721
1 changed files with 4 additions and 2 deletions

View File

@ -129,9 +129,11 @@ TEST(IncludeFixer, MinimizeInclude) {
#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 @@ TEST(IncludeFixer, NestedName) {
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