git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374518 91177308-0d34-0410-b5e6-96231b3b80d8
@@ -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);