[llvm] aa5bc41 - [test] Reset timer flag after test is done
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 13 13:33:45 PDT 2022
Author: Arthur Eubanks
Date: 2022-10-13T13:31:22-07:00
New Revision: aa5bc41b765694696ff05c3448247f7525577657
URL: https://github.com/llvm/llvm-project/commit/aa5bc41b765694696ff05c3448247f7525577657
DIFF: https://github.com/llvm/llvm-project/commit/aa5bc41b765694696ff05c3448247f7525577657.diff
LOG: [test] Reset timer flag after test is done
Fixes some test failures after D135219 on internal bots.
Added:
Modified:
llvm/unittests/IR/TimePassesTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/IR/TimePassesTest.cpp b/llvm/unittests/IR/TimePassesTest.cpp
index e3d2c726bf91e..33f8e00b377d5 100644
--- a/llvm/unittests/IR/TimePassesTest.cpp
+++ b/llvm/unittests/IR/TimePassesTest.cpp
@@ -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> {};
More information about the llvm-commits
mailing list