Suppress 'command failed' on normal errors.
This commit is contained in:
parent
2bbb9dccb1
commit
647c321437
2
Changes
2
Changes
|
|
@ -16,6 +16,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
|
||||||
|
|
||||||
*** Support multithreading on Windows. [Patrick Stewart]
|
*** Support multithreading on Windows. [Patrick Stewart]
|
||||||
|
|
||||||
|
*** Suppress 'command failed' on normal errors.
|
||||||
|
|
||||||
**** Increase case duplicate/incomplete to 16 bit tables, bug1545. [Yossi Nivin]
|
**** Increase case duplicate/incomplete to 16 bit tables, bug1545. [Yossi Nivin]
|
||||||
|
|
||||||
**** Support quoted arguments in -f files, bug1535. [Yves Mathieu]
|
**** Support quoted arguments in -f files, bug1535. [Yves Mathieu]
|
||||||
|
|
|
||||||
|
|
@ -197,14 +197,12 @@ sub run {
|
||||||
warn "%Error: Verilator threw signal $status. Consider trying --debug --gdbbt\n" if !$Debug;
|
warn "%Error: Verilator threw signal $status. Consider trying --debug --gdbbt\n" if !$Debug;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($opt_quiet_exit) {
|
if (!$opt_quiet_exit && ($status != 256 || $Debug)) { # i.e. not normal exit(1)
|
||||||
# Same return code as die
|
warn "%Error: Command Failed $command\n";
|
||||||
exit $! if $!; # errno
|
|
||||||
exit $? >> 8 if $? >> 8; # child exit status
|
|
||||||
exit 255; # last resort
|
|
||||||
} else {
|
|
||||||
die "%Error: Command Failed $command\n";
|
|
||||||
}
|
}
|
||||||
|
exit $! if $!; # errno
|
||||||
|
exit $? >> 8 if $? >> 8; # child exit status
|
||||||
|
exit 255; # last resort
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,12 @@ sub run {
|
||||||
warn "%Error: Verilator_coverage threw signal $status.\n" if !$Debug;
|
warn "%Error: Verilator_coverage threw signal $status.\n" if !$Debug;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
die "%Error: Command Failed $command\n";
|
if ($status != 256 || $Debug) { # i.e. not normal exit(1)
|
||||||
|
warn "%Error: Command Failed $command\n";
|
||||||
|
}
|
||||||
|
exit $! if $!; # errno
|
||||||
|
exit $? >> 8 if $? >> 8; # child exit status
|
||||||
|
exit 255; # last resort
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ void V3Error::vlAbort() {
|
||||||
std::cerr<<msgPrefix()<<"Aborting since under --debug"<<endl;
|
std::cerr<<msgPrefix()<<"Aborting since under --debug"<<endl;
|
||||||
abort();
|
abort();
|
||||||
} else {
|
} else {
|
||||||
exit(10);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -488,7 +488,7 @@ private:
|
||||||
execl("/bin/sh", "sh", "-c", command.c_str(), static_cast<char*>(NULL));
|
execl("/bin/sh", "sh", "-c", command.c_str(), static_cast<char*>(NULL));
|
||||||
// Don't use v3fatal, we don't share the common structures any more
|
// Don't use v3fatal, we don't share the common structures any more
|
||||||
fprintf(stderr, "--pipe-filter: exec failed: %s\n", strerror(errno));
|
fprintf(stderr, "--pipe-filter: exec failed: %s\n", strerror(errno));
|
||||||
_exit(10);
|
_exit(1);
|
||||||
}
|
}
|
||||||
else { // Parent
|
else { // Parent
|
||||||
UINFO(6,"In parent, child pid "<<pid
|
UINFO(6,"In parent, child pid "<<pid
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,7 @@ compile(
|
||||||
fails => $Self->{vlt_all},
|
fails => $Self->{vlt_all},
|
||||||
expect =>
|
expect =>
|
||||||
'%Error: Internal Error: .*: --debug-fatal-src
|
'%Error: Internal Error: .*: --debug-fatal-src
|
||||||
.* See the manual and .*
|
.* See the manual and .*',
|
||||||
%Error: Command Failed.*',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,3 @@
|
||||||
always_comb @(*) begin
|
always_comb @(*) begin
|
||||||
^
|
^
|
||||||
%Error: Cannot continue
|
%Error: Cannot continue
|
||||||
%Error: Command Failed
|
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,3 @@
|
||||||
inout z,
|
inout z,
|
||||||
^
|
^
|
||||||
... See the manual and http://www.veripool.org/verilator for more assistance.
|
... See the manual and http://www.veripool.org/verilator for more assistance.
|
||||||
%Error: Command Failed
|
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,3 @@
|
||||||
input unpacked_in [7:0],
|
input unpacked_in [7:0],
|
||||||
^~~~~~~~~~~
|
^~~~~~~~~~~
|
||||||
... See the manual and http://www.veripool.org/verilator for more assistance.
|
... See the manual and http://www.veripool.org/verilator for more assistance.
|
||||||
%Error: Command Failed
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
%Error: Can't read t/t_NOT_FOUND
|
%Error: Can't read t/t_NOT_FOUND
|
||||||
%Error: Command Failed
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue