diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-08-29 16:11:48 +0000 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-08-29 16:11:48 +0000 |
commit | bc2f06c9ef58518b357c3e6399895c0b90db9ff1 (patch) | |
tree | ab52d2e05bb6f0e94a7cc74d382dc37d64e7cb2d | |
parent | e1ca7b614fc81d7d49172978c8de67832a652aa4 (diff) | |
download | bcm5719-llvm-bc2f06c9ef58518b357c3e6399895c0b90db9ff1.tar.gz bcm5719-llvm-bc2f06c9ef58518b357c3e6399895c0b90db9ff1.zip |
[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
-rw-r--r-- | llvm/unittests/Support/DebugCounterTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Support/DebugCounterTest.cpp b/llvm/unittests/Support/DebugCounterTest.cpp index f3c2817a22e..32bf56c9f2f 100644 --- a/llvm/unittests/Support/DebugCounterTest.cpp +++ b/llvm/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(); |