Tests: Fix removing line numbers (#4352)

This commit is contained in:
Wilson Snyder 2023-07-10 08:17:49 -04:00
parent 3ee9b33f8a
commit bd4afeea69
2 changed files with 2 additions and 2 deletions

View File

@ -2229,7 +2229,7 @@ sub files_identical {
&& !/\+\+\+ \/tmp\// # t_difftree.pl
} @l1;
@l1 = map {
s/(Internal Error: [^\n]+\.(cpp|h)):[0-9]+:/$1:#:/;
while (s/(Internal Error: [^\n]+\.(cpp|h)):[0-9]+/$1:#/g) {}
s/^-V\{t[0-9]+,[0-9]+\}/-V{t#,#}/; # --vlt vs --vltmt run differences
$_;
} @l1;

View File

@ -2,7 +2,7 @@
16 | foo(bus_we_select_from[2]);
| ^
... For error description see https://verilator.org/warn/TASKNSVAR?v=latest
%Error: Internal Error: t/t_func_tasknsvar_bad.v:10:7: ../V3Broken.cpp:#: Broken link in node (or something without maybePointedTo): 'm_varp && !m_varp->brokeExists()' @ ../V3AstNodes.cpp:72
%Error: Internal Error: t/t_func_tasknsvar_bad.v:10:7: ../V3Broken.cpp:#: Broken link in node (or something without maybePointedTo): 'm_varp && !m_varp->brokeExists()' @ ../V3AstNodes.cpp:#
10 | sig = '1;
| ^~~
... See the manual at https://verilator.org/verilator_doc.html for more assistance.