aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-02-23 10:56:27 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2020-02-23 10:56:27 +0100
commit1c569fe06aba3850e557eb44895a522cc4167de2 (patch)
tree4db39735399cc760b2928c7a6474839cd2deda00 /kernel
parent48eed2860c83593f7a074ae27fbd98588a3a062b (diff)
downloadyosys-1c569fe06aba3850e557eb44895a522cc4167de2.tar.gz
yosys-1c569fe06aba3850e557eb44895a522cc4167de2.tar.bz2
yosys-1c569fe06aba3850e557eb44895a522cc4167de2.zip
Remove duplicate warning detection
Diffstat (limited to 'kernel')
-rw-r--r--kernel/log.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc
index 1785809e4..72181ebe8 100644
--- a/kernel/log.cc
+++ b/kernel/log.cc
@@ -668,9 +668,11 @@ void log_check_expected()
for (auto &item : log_expect_warning) {
if (item.second.current_count == 0) {
+ log_warn_regexes.clear();
log_error("Expected warning pattern '%s' not found !\n", item.second.pattern.c_str());
}
if (item.second.current_count != item.second.expected_count) {
+ log_warn_regexes.clear();
log_error("Expected warning pattern '%s' found %d time(s), instead of %d time(s) !\n",
item.second.pattern.c_str(), item.second.current_count, item.second.expected_count);
}
@@ -678,9 +680,11 @@ void log_check_expected()
for (auto &item : log_expect_log) {
if (item.second.current_count == 0) {
+ log_warn_regexes.clear();
log_error("Expected log pattern '%s' not found !\n", item.second.pattern.c_str());
}
if (item.second.current_count != item.second.expected_count) {
+ log_warn_regexes.clear();
log_error("Expected log pattern '%s' found %d time(s), instead of %d time(s) !\n",
item.second.pattern.c_str(), item.second.current_count, item.second.expected_count);
}
@@ -688,6 +692,7 @@ void log_check_expected()
for (auto &item : log_expect_error)
if (item.second.current_count == item.second.expected_count) {
+ log_warn_regexes.clear();
log("Expected error pattern '%s' found !!!\n", item.second.pattern.c_str());
#ifdef EMSCRIPTEN
log_files = backup_log_files;
@@ -699,6 +704,7 @@ void log_check_expected()
#endif
} else {
display_error_log_msg = false;
+ log_warn_regexes.clear();
log_error("Expected error pattern '%s' not found !\n", item.second.pattern.c_str());
}
}