[COMMITTED] testsuite: Shorten multiline pattern message to the same for fail and pass

Message ID 20230228012714.1C78E2043D@pchp3.se.axis.com
State Unresolved
Headers
Series [COMMITTED] testsuite: Shorten multiline pattern message to the same for fail and pass |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Hans-Peter Nilsson Feb. 28, 2023, 1:27 a.m. UTC
  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.
---
 gcc/testsuite/lib/multiline.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gcc/testsuite/lib/multiline.exp b/gcc/testsuite/lib/multiline.exp
index 5eccf2bbebc1..cfd928f6e28a 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]