forked from OSchip/llvm-project
IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32.
llvm-svn: 269870
This commit is contained in:
parent
1997856936
commit
62e8ec5721
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue