3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

compiler_vm: Improve a couple of output sanitization regexs

This commit is contained in:
Pragmatic Software 2014-05-08 13:07:24 +00:00
parent 62d93c76c3
commit ae1842e3db
2 changed files with 5 additions and 4 deletions

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 567, BUILD_REVISION => 568,
BUILD_DATE => "2014-05-05", BUILD_DATE => "2014-05-08",
}; };
1; 1;

View File

@ -987,8 +987,9 @@ if($output =~ m/^\s*$/) {
print FILE "$output\n"; print FILE "$output\n";
} }
$output =~ s/In file included from .*?:\d+:\d+.\s*from prog.c:\d+:\s*//msg; $output =~ s/In file included from .*?:\d+:\d+.\s*from prog.c:\d+.\s*//msg;
$output =~ s/In file included from .*?:\d+:\d+.\s*//msg; $output =~ s/In file included from .*?:\d+:\d+.\s*//msg;
$output =~ s/\s*from prog.c:\d+.\s*//g;
$output =~ s/prog: prog.c:\d+: [^:]+: Assertion/Assertion/g; $output =~ s/prog: prog.c:\d+: [^:]+: Assertion/Assertion/g;
$output =~ s,/usr/include/[^:]+:\d+:\d+:\s+,,g; $output =~ s,/usr/include/[^:]+:\d+:\d+:\s+,,g;
@ -1001,7 +1002,7 @@ if($output =~ m/^\s*$/) {
} }
$output =~ s/;?\s?__PRETTY_FUNCTION__ = "[^"]+"//g; $output =~ s/;?\s?__PRETTY_FUNCTION__ = "[^"]+"//g;
$output =~ s/(\d+:\d+:\s*)*cc1: warnings being treated as errors//; $output =~ s/(\d+:\d+:\s*)*cc1: (all\s+)?warnings being treated as errors//;
$output =~ s/(\d+:\d+:\s*)* \(first use in this function\)//g; $output =~ s/(\d+:\d+:\s*)* \(first use in this function\)//g;
$output =~ s/(\d+:\d+:\s*)*error: \(Each undeclared identifier is reported only once.*?\)//msg; $output =~ s/(\d+:\d+:\s*)*error: \(Each undeclared identifier is reported only once.*?\)//msg;
$output =~ s/(\d+:\d+:\s*)*ld: warning: cannot find entry symbol _start; defaulting to [^ ]+//; $output =~ s/(\d+:\d+:\s*)*ld: warning: cannot find entry symbol _start; defaulting to [^ ]+//;