[PATCH] D51423: Fix DebugCounterTest when running all SupportTests

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 29 09:01:41 PDT 2018


aganea updated this revision to Diff 163107.
aganea marked an inline comment as done.
aganea removed a reviewer: gbiv.
aganea added a comment.

Of course, thanks! See updated diff.


Repository:
  rL LLVM

https://reviews.llvm.org/D51423

Files:
  unittests/Support/DebugCounterTest.cpp


Index: unittests/Support/DebugCounterTest.cpp
===================================================================
--- unittests/Support/DebugCounterTest.cpp
+++ unittests/Support/DebugCounterTest.cpp
@@ -14,10 +14,9 @@
 using namespace llvm;
 
 #ifndef NDEBUG
-DEBUG_COUNTER(TestCounter, "test-counter",
-              "Counter used for unit test");
-
 TEST(DebugCounterTest, CounterCheck) {
+  DEBUG_COUNTER(TestCounter, "test-counter", "Counter used for unit test");
+
   EXPECT_FALSE(DebugCounter::isCounterSet(TestCounter));
 
   auto DC = &DebugCounter::instance();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51423.163107.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180829/18a45ec4/attachment.bin>


More information about the llvm-commits mailing list