aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@foss.st.com>2021-09-08 08:31:05 +0000
committerChristophe Lyon <christophe.lyon@foss.st.com>2021-09-20 10:26:30 +0200
commit9081759b7ea5f7f1b17ea2a09cc438115c219ca1 (patch)
tree644a4cd3286f7c04d1094248dfaa8cb6499bff43 /gcc
parent7d79c3ebc3f3f6f8aecf83726c97474ae5cfe957 (diff)
downloadgcc-9081759b7ea5f7f1b17ea2a09cc438115c219ca1.zip
gcc-9081759b7ea5f7f1b17ea2a09cc438115c219ca1.tar.gz
gcc-9081759b7ea5f7f1b17ea2a09cc438115c219ca1.tar.bz2
testsuite: Remove .exe suffix in prune_gcc_output
When running the testsuite under Windows, we noticed failures in testcase which attempt to match compiler error messages containing the name of the executable. For instance, gcc.dg/analyzer/signal-4a.c tries to match 'cc1:' which obviously fails when the executable is called cc1.exe. This patch removes the .exe suffix from various toolchain executables to avoid this problem. 2021-09-08 Christophe Lyon <christophe.lyon@foss.st.com> Torbjörn SVENSSON <torbjorn.svensson@st.com> gcc/testsuite/ * lib/prune.exp (prune_gcc_output): Remove .exe suffix from toolchain executables names.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/lib/prune.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
index 91f165b..fac212e 100644
--- a/gcc/testsuite/lib/prune.exp
+++ b/gcc/testsuite/lib/prune.exp
@@ -37,6 +37,9 @@ proc prune_gcc_output { text } {
# Handle any freeform regexps.
set text [handle-dg-regexps $text]
+ # Remove Windows .exe suffix
+ regsub -all "(as|cc1|cc1plus|collect2|f951|ld|lto-wrapper)\.exe?:" $text {\1:} text
+
regsub -all "(^|\n)(\[^\n\]*: \[iI\]|I)n ((static member |lambda )?function|member|method|(copy )?constructor|destructor|instantiation|substitution|program|subroutine|block-data)\[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*(: )?At (top level|global scope):\[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: (recursively )?required \[^\n\]*" $text "" text