[llvm] r374518 - [ADT][Statistics] Fix test after rL374490
Kadir Cetinkaya via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 00:19:54 PDT 2019
Author: kadircet
Date: Fri Oct 11 00:19:54 2019
New Revision: 374518
URL: http://llvm.org/viewvc/llvm-project?rev=374518&view=rev
Log:
[ADT][Statistics] Fix test after rL374490
Modified:
llvm/trunk/unittests/ADT/StatisticTest.cpp
Modified: llvm/trunk/unittests/ADT/StatisticTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/StatisticTest.cpp?rev=374518&r1=374517&r2=374518&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/StatisticTest.cpp (original)
+++ llvm/trunk/unittests/ADT/StatisticTest.cpp Fri Oct 11 00:19:54 2019
@@ -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);
More information about the llvm-commits
mailing list