소스 검색

[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 년 전
부모
커밋
c037b112fd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);