mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
[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
4f40c047fe
commit
7fa417bc07
@ -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…
x
Reference in New Issue
Block a user