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

Tom de Vries vries@sourceware.org
Tue May 20 09:06:18 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1909aebeb5c41058ee9a34102bc82b4ab0dddeb5

commit 1909aebeb5c41058ee9a34102bc82b4ab0dddeb5
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue May 20 11:05:54 2025 +0200

    [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>

Diff:
---
 .pre-commit-config.yaml             | 2 +-
 gdb/testsuite/gdb.tui/pr30056.exp   | 4 ++--
 gdb/testsuite/gdb.tui/tui-focus.exp | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a71f7eb62f2..6f096dc67ac 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)))/'
+      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:
diff --git a/gdb/testsuite/gdb.tui/pr30056.exp b/gdb/testsuite/gdb.tui/pr30056.exp
index 112359354c6..3403033b3db 100644
--- a/gdb/testsuite/gdb.tui/pr30056.exp
+++ b/gdb/testsuite/gdb.tui/pr30056.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.tui/tui-focus.exp b/gdb/testsuite/gdb.tui/tui-focus.exp
index 4c9d2a0b41b..26e5060636e 100644
--- a/gdb/testsuite/gdb.tui/tui-focus.exp
+++ b/gdb/testsuite/gdb.tui/tui-focus.exp
@@ -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]} {


More information about the Binutils-cvs mailing list