[test] Reset timer flag after test is done

Fixes some test failures after D135219 on internal bots.
This commit is contained in:
Arthur Eubanks 2022-10-13 13:31:22 -07:00
parent d85505a932
commit aa5bc41b76
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ TEST(TimePassesTest, LegacyCustomOut) {
EXPECT_TRUE(TimePassesStr.str().contains("report"));
EXPECT_FALSE(TimePassesStr.str().contains("Pass1"));
EXPECT_TRUE(TimePassesStr.str().contains("Pass2"));
// Reset flag to not affect other tests.
TimePassesIsEnabled = false;
}
class MyPass1 : public PassInfoMixin<MyPass1> {};