[gdb/testsuite] Make gdb.tui codespell-clean

Make gdb.tui codespell-clean and add the dir to the pre-commit
configuration.

Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Tom de Vries
2025-05-20 11:05:54 +02:00
parent 0518fa417d
commit 1909aebeb5
3 changed files with 4 additions and 4 deletions

View File

@@ -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)))/'
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)))/'
args: [--config, gdb/contrib/setup.cfg]
- repo: local
hooks:

View File

@@ -76,12 +76,12 @@ save_vars { env(LC_ALL) } {
# open about this.
kfail cli/30498 $test
# At this point we don't have a reponsive prompt. Send ^G to abort
# At this point we don't have a responsive prompt. Send ^G to abort
# the i-search.
send_gdb "\007"
}
# We need a reponsive prompt here, to deal with the "monitor exit"
# We need a responsive prompt here, to deal with the "monitor exit"
# that native-extended-gdbserver will send. Check that we have a
# responsive prompt.
Term::command "echo \\n"

View File

@@ -73,7 +73,7 @@ foreach spec {{src true} {cmd true} {status true} {regs false} \
}
}
# Use the Python TUI API to exercise some of the ambigous window name
# Use the Python TUI API to exercise some of the ambiguous window name
# handling parts of the 'focus' command.
Term::clean_restart 24 80 $binfile
if {[allow_python_tests]} {