Browse Source

[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 năm trước cách đây
mục cha
commit
c037b112fd
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      unittests/ADT/StatisticTest.cpp

+ 2 - 0
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);