public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6368] testsuite: Shorten multiline pattern message to the same for fail and pass
@ 2023-02-28  1:26 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-02-28  1:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cdbcd46c1b521c57637af6d001241aa658e96651

commit r13-6368-gcdbcd46c1b521c57637af6d001241aa658e96651
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Mon Feb 27 20:00:25 2023 +0100

    testsuite: Shorten multiline pattern message to the same for fail and pass
    
    As recommended by testsuite maintainer: Regression analysis
    works only if the string is the same.
    
    testsuite:
            * lib/multiline.exp (handle-multiline-outputs): Shorten
            message to the same for fail and pass.

Diff:
---
 gcc/testsuite/lib/multiline.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/lib/multiline.exp b/gcc/testsuite/lib/multiline.exp
index 5eccf2bbebc..cfd928f6e28 100644
--- a/gcc/testsuite/lib/multiline.exp
+++ b/gcc/testsuite/lib/multiline.exp
@@ -169,9 +169,9 @@ proc handle-multiline-outputs { text } {
 	# Use "regsub" to attempt to prune the pattern from $text
 	if {[regsub -line $rexp $text "" text]} {
 	    # The multiline pattern was pruned.
-	    ${maybe_x}pass "$title was found"
+	    ${maybe_x}pass "$title"
 	} else {
-	    ${maybe_x}fail "$title not found"
+	    ${maybe_x}fail "$title"
 	}
 
 	set index [expr $index + 1]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-28  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28  1:26 [gcc r13-6368] testsuite: Shorten multiline pattern message to the same for fail and pass Hans-Peter Nilsson

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).