]> granicus.if.org Git - llvm/commitdiff
[ADT][Statistics] Fix test after rL374490
authorKadir Cetinkaya <kadircet@google.com>
Fri, 11 Oct 2019 07:19:54 +0000 (07:19 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 11 Oct 2019 07:19:54 +0000 (07:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374518 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/StatisticTest.cpp

index eb7a947224d4b75241edd3e433af9a460a4412f9..e5a0cad26d685ce510637de5d3d6579cf799c22b 100644 (file)
@@ -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);