[PUSHED] gdb/testsuite: improve test regexp in gdb_get_worker_threads

Message ID b489eb90880aadadcbacfa2d9ed129732eebd834.1701195643.git.aburgess@redhat.com
State New
Headers
Series [PUSHED] gdb/testsuite: improve test regexp in gdb_get_worker_threads |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Andrew Burgess Nov. 28, 2023, 6:21 p.m. UTC
  I spotted I made a small mistake in this commit:

  commit aff250145af6c7a8ea9332bc1306c1219f4a63db
  Date:   Fri Nov 24 12:04:36 2023 +0000

      gdb: generate gdb-index identically regardless of work thread count

In this commit I added a new proc in testsuite/lib/gdb.exp called
gdb_get_worker_threads.  This proc uses gdb_test_multiple with two
possible patterns.  One pattern is anchored with '^', while the other
is missing the '^' which it could use.

This commit adds the missing '^'.
---
 gdb/testsuite/lib/gdb.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 0f2fd473202983f368bfc4a4fa1c365c231c4b2f
  

Patch

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index b534a61d066..d0990dcfe0e 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -10034,7 +10034,7 @@  proc gdb_get_worker_threads { {testname ""} } {
 	-wrap -re "^The number of worker threads GDB can use is unlimited \\(currently ($::decimal)\\)\\." {
 	    set worker_threads $expect_out(1,string)
 	}
-	-wrap -re "The number of worker threads GDB can use is ($::decimal)\\." {
+	-wrap -re "^The number of worker threads GDB can use is ($::decimal)\\." {
 	    set worker_threads $expect_out(1,string)
 	}
     }