log: convert all to sinks

This commit is contained in:
Miodrag Milanovic
2026-08-14 11:55:46 +02:00
parent bd5c524dc6
commit cbbd8c0dfd
14 changed files with 253 additions and 158 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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();
+1 -2
View File
@@ -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>());
}
};