[DebugCounters] Fix DebugCounterTest when running all SupportTests

Previously, the DebugCounterTest was failing because CommandLineTest.GetCommandLineArguments was clearing all the global singletons.

Differential Revision: https://reviews.llvm.org/D51423

llvm-svn: 340935
This commit is contained in:
Alexandre Ganea 2018-08-29 16:11:48 +00:00
parent e1ca7b614f
commit bc2f06c9ef
1 changed files with 2 additions and 3 deletions

View File

@ -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();