]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Add missing require {!is_remote host}
authorTom de Vries <tdevries@suse.de>
Wed, 27 Aug 2025 06:28:34 +0000 (08:28 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 27 Aug 2025 06:28:34 +0000 (08:28 +0200)
I ran test-case gdb.python/py-color-pagination.exp with make-check-all.sh and
noticed failures when using remote host.

So I grepped to find all test-cases using with_ansi_styling_terminal and ran
them with host/target board local-remote-host-native.

Fix the failing test-cases using require {!is_remote host}.

Tested on x86_64-linux.

gdb/testsuite/gdb.guile/scm-color.exp
gdb/testsuite/gdb.python/py-color-pagination.exp
gdb/testsuite/gdb.python/py-color.exp
gdb/testsuite/gdb.python/py-format-string.exp
gdb/testsuite/gdb.python/py-startup-opt.exp
gdb/testsuite/gdb.python/py-styled-execute.exp

index 578f712201d122a53f60f55a41d75c976647b91b..4c6a9c2bee6edc4269a6ef663fb108aca0db8bda 100644 (file)
@@ -19,6 +19,7 @@
 load_lib gdb-guile.exp
 
 require allow_guile_tests
+require {!is_remote host}
 
 # Start GDB with styling support.
 with_ansi_styling_terminal {
index 3235fffe5cc667bbe8f3d8ed305d83cd3f7bd4ca..ad9ae9b71e5779ea620f803c4a24f4d65db6cf64 100644 (file)
@@ -19,6 +19,7 @@
 load_lib gdb-python.exp
 
 require allow_python_tests
+require {!is_remote host}
 
 standard_testfile
 
index 2601cf3783685ec584f0f9e3f3471ee9c1e2e156..08089e5b7b586ee55cdd3bc71e49780e26ae1c2f 100644 (file)
@@ -18,6 +18,7 @@
 load_lib gdb-python.exp
 
 require allow_python_tests
+require {!is_remote host}
 
 # Start with a fresh GDB, but enable color support.
 with_ansi_styling_terminal {
index 114a6065b3128e35bb71a3f0e85549c503ff6e27..2463185aab4cdbee68dac354a7e042981c6e5e67 100644 (file)
@@ -1202,7 +1202,9 @@ with_test_prefix "format_string" {
        set current_lang "c"
        prepare_gdb "${binfile}"
        test_all_common
-       test_styling
+       if { ![is_remote host] } {
+           test_styling
+       }
       }
     }
   }
index 74107063c2068ce702d60782589b8ad67363423b..929c64d21e4455284755e4ce459a35b9c270cc4f 100644 (file)
@@ -17,6 +17,7 @@
 # initialized.
 
 require allow_python_tests
+require {!is_remote host}
 
 # Return a list containing two directory paths for newly created home
 # directories.
index 0b27c638eb6d18cd5904fe7417dd4fd3f823b887..198dab52ddd7e7c7bd59263978977cd5f5ec6b9d 100644 (file)
@@ -17,6 +17,7 @@
 # on the value of the third argument passed to gdb.execute.
 
 require allow_python_tests
+require {!is_remote host}
 
 load_lib gdb-python.exp