[compiler-rt] Fix reporting unrecognized flags in unit tests.

Previously, the warning messages might be issued within a wrong test case.

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

llvm-svn: 352447
This commit is contained in:
Igor Kudrin 2019-01-29 02:31:57 +00:00
parent 87cc05055a
commit 0f13000958
1 changed files with 3 additions and 0 deletions

View File

@ -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 <>