Try to unbreak buildbots after r298913.

llvm-svn: 298919
This commit is contained in:
Eric Liu 2017-03-28 13:56:19 +00:00
parent e4f11334fa
commit be8d7a32c2
1 changed files with 20 additions and 28 deletions

View File

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