Author: chapuni Date: Tue May 17 19:20:46 2016 New Revision: 269870 URL: http://llvm.org/viewvc/llvm-project?rev=269870&view=rev Log: IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32.
Modified: clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp Modified: clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp?rev=269870&r1=269869&r2=269870&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp (original) +++ clang-tools-extra/trunk/unittests/include-fixer/IncludeFixerTest.cpp Tue May 17 19:20:46 2016 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits