Skip to content

Commit

Permalink
[compiler-rt] Fix reporting unrecognized flags in unit tests.
Browse files Browse the repository at this point in the history
Previously, the warning messages might be issued within a wrong test case.

Differential Revision: https://reviews.llvm.org/D57318

llvm-svn: 352447
  • Loading branch information
igorkudrin committed Jan 29, 2019
1 parent 87cc050 commit 0f13000
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ static void TestFlag(T start_value, const char *env, T final_value) {
parser.ParseString(env);

EXPECT_EQ(final_value, flag);

// Reporting unrecognized flags is needed to reset them.
ReportUnrecognizedFlags();
}

template <>
Expand Down

0 comments on commit 0f13000

Please sign in to comment.