* [PATCH] testsuite: Remove .exe suffix in prune_gcc_output
@ 2021-09-08 8:49 Christophe Lyon
2021-09-13 8:31 ` Christophe LYON
2021-09-19 14:46 ` Jeff Law
0 siblings, 2 replies; 3+ messages in thread
From: Christophe Lyon @ 2021-09-08 8:49 UTC (permalink / raw)
To: gcc-patches
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.
---
gcc/testsuite/lib/prune.exp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
index 91f165bec38..fac212ecf60 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
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] testsuite: Remove .exe suffix in prune_gcc_output
2021-09-08 8:49 [PATCH] testsuite: Remove .exe suffix in prune_gcc_output Christophe Lyon
@ 2021-09-13 8:31 ` Christophe LYON
2021-09-19 14:46 ` Jeff Law
1 sibling, 0 replies; 3+ messages in thread
From: Christophe LYON @ 2021-09-13 8:31 UTC (permalink / raw)
To: gcc Patches
ping?
On 08/09/2021 10:49, Christophe Lyon wrote:
> 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.
> ---
> gcc/testsuite/lib/prune.exp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
> index 91f165bec38..fac212ecf60 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] testsuite: Remove .exe suffix in prune_gcc_output
2021-09-08 8:49 [PATCH] testsuite: Remove .exe suffix in prune_gcc_output Christophe Lyon
2021-09-13 8:31 ` Christophe LYON
@ 2021-09-19 14:46 ` Jeff Law
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Law @ 2021-09-19 14:46 UTC (permalink / raw)
To: Christophe Lyon, gcc-patches
On 9/8/2021 2:49 AM, Christophe Lyon via Gcc-patches wrote:
> 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.
OK
jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-19 14:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 8:49 [PATCH] testsuite: Remove .exe suffix in prune_gcc_output Christophe Lyon
2021-09-13 8:31 ` Christophe LYON
2021-09-19 14:46 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).