From d8f05f2022b629a3dcd821e1d190750d4f103b9a Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 20 May 2025 11:05:54 +0200 Subject: [PATCH] [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 --- .pre-commit-config.yaml | 2 +- gdb/testsuite/gdb.xml/bad-include.xml | 2 +- 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 6f096dc67ac..00ea9f18bbb 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 f7a2b72a53c..cd9cce39056 100644 --- a/gdb/testsuite/gdb.xml/bad-include.xml +++ b/gdb/testsuite/gdb.xml/bad-include.xml @@ -1 +1 @@ - + diff --git a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp b/gdb/testsuite/gdb.xml/tdesc-xinclude.exp index 885d2177e24..b934c8096f3 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" \ -- 2.47.2