]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix gdb.base/reset-catchpoint-cond.exp with --with-expat=no
authorTom de Vries <tdevries@suse.de>
Tue, 3 Dec 2024 15:53:14 +0000 (16:53 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 3 Dec 2024 15:53:14 +0000 (16:53 +0100)
When building gdb with --with-expat=no and running test-case
gdb.base/reset-catchpoint-cond.exp we get:
...
(gdb) catch syscall write^M
warning: Can not parse XML syscalls information; \
  XML support was disabled at compile time.^M
Unknown syscall name 'write'.^M
(gdb) FAIL: $exp: mode=syscall: catch syscall write
...

Fix this by skipping the test for --with-expat=no.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/reset-catchpoint-cond.exp

index e119c32e7021d5f2b55c9c14af693517ac6206ec..dabacd474671bb4b6bcb5d37ab7c4f8fe6452b4d 100644 (file)
@@ -165,5 +165,8 @@ proc run_test { mode } {
 
 # Run the tests.
 foreach_with_prefix mode { syscall signal fork } {
+    if { $mode == "syscall" && ![allow_xml_test] } {
+       continue
+    }
     run_test $mode
 }