diff options
author | Tom de Vries <tdevries@suse.de> | 2025-05-20 11:05:54 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-05-20 11:05:54 +0200 |
commit | d8f05f2022b629a3dcd821e1d190750d4f103b9a (patch) | |
tree | 3db4fc7a858205fb5c3056039ece2f0635d40076 | |
parent | 1909aebeb5c41058ee9a34102bc82b4ab0dddeb5 (diff) | |
download | binutils-d8f05f2022b629a3dcd821e1d190750d4f103b9a.zip binutils-d8f05f2022b629a3dcd821e1d190750d4f103b9a.tar.gz binutils-d8f05f2022b629a3dcd821e1d190750d4f103b9a.tar.bz2 |
[gdb/testsuite] Make gdb.xml codespell-clean
Make gdb.xml codespell-clean and add the dir to the pre-commit
configuration.
Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/bad-include.xml | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-xinclude.exp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f096dc..00ea9f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,7 +70,7 @@ repos: rev: v2.4.1 hooks: - id: codespell - files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|testsuite|tui)))/' + files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|testsuite|tui|xml)))/' args: [--config, gdb/contrib/setup.cfg] - repo: local hooks: diff --git a/gdb/testsuite/gdb.xml/bad-include.xml b/gdb/testsuite/gdb.xml/bad-include.xml index f7a2b72..cd9cce3 100644 --- a/gdb/testsuite/gdb.xml/bad-include.xml +++ b/gdb/testsuite/gdb.xml/bad-include.xml @@ -1 +1 @@ -<xi:include href="nonexistant.xml"/> +<xi:include href="nonexistent.xml"/> diff --git a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp b/gdb/testsuite/gdb.xml/tdesc-xinclude.exp index 885d217..b934c80 100644 --- a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp +++ b/gdb/testsuite/gdb.xml/tdesc-xinclude.exp @@ -43,7 +43,7 @@ set_arch "includes.xml" \ # This file contains a missing include. We should warn the user about # it. set_arch "bad-include.xml" \ - "warning:.*Could not load XML document \"nonexistant.xml\"$common_warn" + "warning:.*Could not load XML document \"nonexistent.xml\"$common_warn" # Make sure we detect infinite loops, eventually. set_arch "loop.xml" \ |