mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Tests: Fix t_timing_fork_comb_bad committed earlier
This commit is contained in:
parent
774ec42be4
commit
0ee214a157
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user