Skip to content

Commit

Permalink
Reverted r304083 as it seems there is a desire to address this in the…
Browse files Browse the repository at this point in the history
… googletest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304084 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed May 28, 2017
1 parent 3eda9f2 commit 74cf586
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions unittests/Support/CommandLineTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ void testCommandLineTokenizer(ParserFunction *parse, StringRef Input,
parse(Input, Saver, Actual, /*MarkEOLs=*/false);
EXPECT_EQ(OutputSize, Actual.size());
for (unsigned I = 0, E = Actual.size(); I != E; ++I) {
if (I < OutputSize) {
if (I < OutputSize)
EXPECT_STREQ(Output[I], Actual[I]);
}
}
}

Expand Down Expand Up @@ -529,9 +528,8 @@ TEST(CommandLineTest, GetRegisteredSubcommands) {
EXPECT_FALSE(Opt1);
EXPECT_FALSE(Opt2);
for (auto *S : cl::getRegisteredSubcommands()) {
if (*S) {
if (*S)
EXPECT_EQ("sc1", S->getName());
}
}

cl::ResetAllOptionOccurrences();
Expand All @@ -540,9 +538,8 @@ TEST(CommandLineTest, GetRegisteredSubcommands) {
EXPECT_FALSE(Opt1);
EXPECT_FALSE(Opt2);
for (auto *S : cl::getRegisteredSubcommands()) {
if (*S) {
if (*S)
EXPECT_EQ("sc2", S->getName());
}
}
}

Expand Down

0 comments on commit 74cf586

Please sign in to comment.