Fix a test failure in gdb.threads/stepi-over-clone.exp

Message ID AS8P193MB12858AC2EC8BDFCD53D7F3D7E43F2@AS8P193MB1285.EURP193.PROD.OUTLOOK.COM
State New
Headers
Series Fix a test failure in gdb.threads/stepi-over-clone.exp |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed

Commit Message

Bernd Edlinger April 1, 2024, 8:41 p.m. UTC
  When the XML support was disabled at compile time,
the test case gdb.threads/stepi-over-clone.exp fails
with lots of time-outs, which can be annoying.
This makes the test case unsupported instead.
---
 gdb/testsuite/gdb.threads/stepi-over-clone.exp | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Tom Tromey April 3, 2024, 7:21 p.m. UTC | #1
>>>>> "Bernd" == Bernd Edlinger <bernd.edlinger@hotmail.de> writes:

Bernd> When the XML support was disabled at compile time,
Bernd> the test case gdb.threads/stepi-over-clone.exp fails
Bernd> with lots of time-outs, which can be annoying.
Bernd> This makes the test case unsupported instead.

Seems reasonable to me.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
  
Bernd Edlinger April 4, 2024, 12:28 p.m. UTC | #2
On 4/3/24 21:21, Tom Tromey wrote:
>>>>>> "Bernd" == Bernd Edlinger <bernd.edlinger@hotmail.de> writes:
> 
> Bernd> When the XML support was disabled at compile time,
> Bernd> the test case gdb.threads/stepi-over-clone.exp fails
> Bernd> with lots of time-outs, which can be annoying.
> Bernd> This makes the test case unsupported instead.
> 
> Seems reasonable to me.
> Approved-By: Tom Tromey <tom@tromey.com>
> 
> Tom
> 

Pushed.

Thanks,
Bernd.
  

Patch

diff --git a/gdb/testsuite/gdb.threads/stepi-over-clone.exp b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
index 7f968171abb..f671fd7b8bd 100644
--- a/gdb/testsuite/gdb.threads/stepi-over-clone.exp
+++ b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
@@ -39,6 +39,10 @@  gdb_test_multiple "catch syscall group:process" "catch process syscalls" {
 	unsupported $gdb_test_name
 	return
     }
+    -re "Can not parse XML syscalls information; XML support was disabled at compile time.*\r\n$gdb_prompt $" {
+	unsupported $gdb_test_name
+	return
+    }
     -re ".*$gdb_prompt $" {
 	pass $gdb_test_name
     }