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.
# Run the tests.
foreach_with_prefix mode { syscall signal fork } {
+ if { $mode == "syscall" && ![allow_xml_test] } {
+ continue
+ }
run_test $mode
}