Revert "Try to unbreak buildbots after r298913."

llvm-svn: 298966
This commit is contained in:
Juergen Ributzka 2017-03-29 00:24:34 +00:00
parent 27b62ae077
commit c9b250611f
1 changed files with 28 additions and 20 deletions

View File

@ -1513,17 +1513,21 @@ TEST_F(ApplyAtomicChangesTest, InsertsNewIncludesInRightOrder) {
}
TEST_F(ApplyAtomicChangesTest, RemoveAndSortIncludes) {
setInput("#include \"a\"\n"
"#include \"b\"\n"
"#include \"c\"\n"
"\n"
"int a;");
setInput(R"(
#include "a"
#include "b"
#include "c"
int a;
)");
Changes.emplace_back(FilePath, "key1");
Changes.back().removeHeader("b");
EXPECT_EQ("#include \"a\"\n"
"#include \"c\"\n"
"\n"
"int a;",
EXPECT_EQ(R"(
#include "a"
#include "c"
int a;
)",
rewrite());
}
TEST_F(ApplyAtomicChangesTest, InsertsSystemIncludes) {
@ -1549,19 +1553,23 @@ TEST_F(ApplyAtomicChangesTest, InsertsSystemIncludes) {
}
TEST_F(ApplyAtomicChangesTest, RemoveSystemIncludes) {
setInput("#include <a>\n"
"#include <b>\n"
"\n"
"#include \"c\""
"\n"
"int a;");
setInput(R"(
#include <a>
#include <b>
#include "c"
int a;
)");
Changes.emplace_back(FilePath, "key1");
Changes.back().removeHeader("<a>");
EXPECT_EQ("#include <b>\n"
"\n"
"#include \"c\""
"\n"
"int a;",
EXPECT_EQ(R"(
#include <b>
#include "c"
int a;
)",
rewrite());
}