From 404e21289a5e5361d27988872bde9dfcd1bbc2ae Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Fri, 11 Oct 2019 07:19:54 +0000 Subject: [PATCH] [ADT][Statistics] Fix test after rL374490 llvm-svn: 374518 --- llvm/unittests/ADT/StatisticTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/unittests/ADT/StatisticTest.cpp b/llvm/unittests/ADT/StatisticTest.cpp index eb7a947224d4..e5a0cad26d68 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);