mirror of https://github.com/YosysHQ/yosys.git
Fixed "check -assert"
This commit is contained in:
parent
4b89dd983c
commit
c4f383e452
|
@ -146,7 +146,7 @@ struct CheckPass : public Pass {
|
||||||
|
|
||||||
log("found and reported %d problems.\n", counter);
|
log("found and reported %d problems.\n", counter);
|
||||||
|
|
||||||
if (assert_mode)
|
if (assert_mode && counter > 0)
|
||||||
log_error("Found %d problems in 'check -assert'.\n", counter);
|
log_error("Found %d problems in 'check -assert'.\n", counter);
|
||||||
}
|
}
|
||||||
} CheckPass;
|
} CheckPass;
|
||||||
|
|
Loading…
Reference in New Issue