forked from OSchip/llvm-project
[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:
parent
e1ca7b614f
commit
bc2f06c9ef
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue