summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-10-11 07:19:54 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-10-11 07:19:54 +0000
commit404e21289a5e5361d27988872bde9dfcd1bbc2ae (patch)
tree314f5425b55c57a126c7e098ba2cb96f7b3b9c6c
parent7ff28ce18351f38719ca0e6ed666f922cc21e379 (diff)
downloadbcm5719-llvm-404e21289a5e5361d27988872bde9dfcd1bbc2ae.tar.gz
bcm5719-llvm-404e21289a5e5361d27988872bde9dfcd1bbc2ae.zip
[ADT][Statistics] Fix test after rL374490
llvm-svn: 374518
-rw-r--r--llvm/unittests/ADT/StatisticTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StatisticTest.cpp b/llvm/unittests/ADT/StatisticTest.cpp
index eb7a947224d..e5a0cad26d6 100644
--- a/llvm/unittests/ADT/StatisticTest.cpp
+++ b/llvm/unittests/ADT/StatisticTest.cpp
@@ -68,6 +68,8 @@ TEST(StatisticTest, Assign) {
TEST(StatisticTest, API) {
EnableStatistics();
+ // Reset beforehand to make sure previous tests don't effect this one.
+ ResetStatistics();
Counter = 0;
EXPECT_EQ(Counter, 0u);
OpenPOWER on IntegriCloud