mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 10:03:36 +02:00
log: convert all to sinks
This commit is contained in:
@@ -11,7 +11,7 @@ YOSYS_NAMESPACE_BEGIN
|
||||
TEST(CellTypesTest, basic)
|
||||
{
|
||||
yosys_setup();
|
||||
log_files.push_back(stdout);
|
||||
if (log_sinks.empty()) log_sinks.push_back(std::make_unique<ConsoleLogSink>());
|
||||
CellTypes older;
|
||||
NewCellTypes newer;
|
||||
older.setup(nullptr);
|
||||
|
||||
@@ -28,7 +28,7 @@ TEST(ModIndexSwapTest, has)
|
||||
|
||||
TEST(ModIndexDeleteTest, has)
|
||||
{
|
||||
if (log_files.empty()) log_files.emplace_back(stdout);
|
||||
if (log_sinks.empty()) log_sinks.push_back(std::make_unique<ConsoleLogSink>());
|
||||
Design* d = new Design;
|
||||
Module* m = d->addModule("$m");
|
||||
Wire* w = m->addWire("$w");
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace RTLIL {
|
||||
class KernelRtlilTest : public testing::Test {
|
||||
protected:
|
||||
KernelRtlilTest() {
|
||||
if (log_files.empty()) log_files.emplace_back(stdout);
|
||||
if (log_sinks.empty()) log_sinks.push_back(std::make_unique<ConsoleLogSink>());
|
||||
}
|
||||
virtual void SetUp() override {
|
||||
IdString::ensure_prepopulated();
|
||||
|
||||
@@ -7,8 +7,7 @@ YOSYS_NAMESPACE_BEGIN
|
||||
class ThreadingTest : public testing::Test {
|
||||
protected:
|
||||
ThreadingTest() {
|
||||
if (log_files.empty())
|
||||
log_files.emplace_back(stdout);
|
||||
if (log_sinks.empty()) log_sinks.push_back(std::make_unique<ConsoleLogSink>());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user