Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] [gdb/testsuite] Require allow_xml_test in gdb.base/foll-fork-syscall.exp
@ 2026-08-03 18:54 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2026-08-03 18:54 UTC (permalink / raw)
  To: gdb-patches

I build gdb without xml support, and ran into:
...
(gdb) catch syscall chdir
warning: Can not parse XML syscalls information; \
  XML support was disabled at compile time.
Unknown syscall name 'chdir'.^M
(gdb) FAIL: $exp: follow-fork-mode=parent: detach-on-fork=on: \
  test_catch_syscall: catch syscall chdir
...

Fix this by requiring allow_xml_test.
---
 gdb/testsuite/gdb.base/foll-fork-syscall.exp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/testsuite/gdb.base/foll-fork-syscall.exp b/gdb/testsuite/gdb.base/foll-fork-syscall.exp
index bbda7aba6e2..a283631f458 100644
--- a/gdb/testsuite/gdb.base/foll-fork-syscall.exp
+++ b/gdb/testsuite/gdb.base/foll-fork-syscall.exp
@@ -21,6 +21,7 @@
 require !gdb_debug_enabled
 require {is_any_target "i?86-*-*" "x86_64-*-*"}
 require allow_fork_tests
+require allow_xml_test
 
 standard_testfile
 

base-commit: f792df95877498ef71fe8f2849b1790e56baf4ab
-- 
2.51.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-03 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 18:54 [pushed] [gdb/testsuite] Require allow_xml_test in gdb.base/foll-fork-syscall.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox