Kaynağa Gözat

[ADT][Statistics] Fix test after rL374490

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374518 91177308-0d34-0410-b5e6-96231b3b80d8
Kadir Cetinkaya 5 yıl önce
ebeveyn
işleme
c037b112fd
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      unittests/ADT/StatisticTest.cpp

+ 2 - 0
unittests/ADT/StatisticTest.cpp

@@ -68,6 +68,8 @@ TEST(StatisticTest, Assign) {
 
 
 TEST(StatisticTest, API) {
 TEST(StatisticTest, API) {
   EnableStatistics();
   EnableStatistics();
+  // Reset beforehand to make sure previous tests don't effect this one.
+  ResetStatistics();
 
 
   Counter = 0;
   Counter = 0;
   EXPECT_EQ(Counter, 0u);
   EXPECT_EQ(Counter, 0u);