Tests: Fix t_timing_fork_comb_bad committed earlier

This commit is contained in:
Wilson Snyder 2024-09-20 22:16:00 -04:00
parent 774ec42be4
commit 0ee214a157
3 changed files with 9 additions and 11 deletions

View File

@ -451,7 +451,7 @@ class Runner:
makecmd = VtOs.getenv_def('VERILATOR_MAKE', os.environ['MAKE']) + " &&"
upperdir = 'test_regress/' if re.search(r'test_regress', os.getcwd()) else ''
self.fail_msgs.append("\t#" + test.soprint("%Error: " + error_msg) + "\t\t" + makecmd +
" " + upperdir + test.py_filename +
" " + upperdir + test.py_filename + ' ' +
' '.join(self._manual_args()) + " --" + test.scenario + "\n")
self.fail_tests.append(test)
self.fail_cnt += 1

View File

@ -11,13 +11,7 @@ import vltest_bootstrap
test.scenarios('simulator')
# Should convert the first always into combo and detect cycle
test.compile(fails=True, verilator_flags2=["--timing"])
test.file_grep(
test.compile_log_filename,
r'%Warning-UNOPTFLAT: t/t_timing_fork_comb.v:\d+:\d+: Signal unoptimizable: Circular combinational logic:'
)
test.compile(verilator_flags2=["--exe --main --timing -Wno-UNOPTFLAT"])
test.execute()

View File

@ -9,11 +9,15 @@
import vltest_bootstrap
test.scenarios('simulator')
test.scenarios('vlt')
test.top_filename = "t/t_timing_fork_comb.v"
test.compile(verilator_flags2=["--exe --main --timing -Wno-UNOPTFLAT"])
# Should convert the first always into combo and detect cycle
test.lint(fails=True, verilator_flags2=["--timing"])
test.execute()
test.file_grep(
test.compile_log_filename,
r'%Warning-UNOPTFLAT: t/t_timing_fork_comb.v:\d+:\d+: Signal unoptimizable: Circular combinational logic:'
)
test.passes()