aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2023-01-20 16:09:42 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2023-01-20 16:09:42 +0100
commit200ffdccc5aacf3ad5ac79f35b6892b455d781ea (patch)
treea3f013980aed5e7103901d3460b7b1748b81c173 /kernel
parent611f71c67020eb501cedd24b2b10751fc1188f5e (diff)
downloadyosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.tar.gz
yosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.tar.bz2
yosys-200ffdccc5aacf3ad5ac79f35b6892b455d781ea.zip
Call yosys_shutdown to properly cleanup plugins and tcl when expecting error
Diffstat (limited to 'kernel')
-rw-r--r--kernel/log.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 0092871f0..75a1ffb45 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -707,6 +707,7 @@ void log_check_expected()
if (item.second.current_count == item.second.expected_count) {
log_warn_regexes.clear();
log("Expected error pattern '%s' found !!!\n", item.first.c_str());
+ yosys_shutdown();
#ifdef EMSCRIPTEN
throw 0;
#elif defined(_MSC_VER)