]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: handle-multiline-outputs must allow both cc1 and cc1.exe
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 17 Jul 2025 12:27:08 +0000 (14:27 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 10 Aug 2025 11:14:27 +0000 (13:14 +0200)
Prior to 14-2027-g985d6480fe5, the input text had the file extensions
pruned. In 14-2027-g985d6480fe5, due to the move of the call, the
pruning is never done. This change restores the pruning of the file
extension to allow multiline test to pass on both Windows and other
platforms like Linux.

gcc/testsuite/ChangeLog:

* lib/multiline.exp: Added pruning of .exe.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/lib/multiline.exp

index 08fd9691a4af750f1007956575e061a382f59bb1..686504773ef84e0d614353d955f1a83f4a931ae5 100644 (file)
@@ -153,6 +153,9 @@ proc handle-multiline-outputs { text } {
     # If dg-enable-nn-line-numbers was provided, then obscure source-margin
     # line numbers by converting them to "NN" form.
     set text [maybe-handle-nn-line-numbers $text]
+
+    # Remove Windows .exe suffix
+    regsub -all "(as|cc1|cc1plus|collect2|f951|ld|lto-wrapper)\.exe?:" $text {\1:} text
     
     set index 0
     foreach entry $multiline_expected_outputs {